Re: String handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try using the intval() function

intval('1000');     // will result in 1000
intval('1000ABC');  // will result in 1000

Amit
www.digitalamit.com

Darryl wrote:
Hay,



Is there a way to make a string into an integer?

I have a value coming from a textbox and I want to check if the amount in it
is < 10000.



Thanks,

Darryl



-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux