Forum Moderators: coopster

Message Too Old, No Replies

is_numeric check between numbers

         

ryanoasis

4:53 am on Feb 11, 2003 (gmt 0)

10+ Year Member



is_numeric

I was trying the function out but it seemed not to work correctly when i passed in a character between the numbers:

like..

5d3
actually I was checking for!is_numeric(myVar)

could that be why?

is this a weakness of the function or am I doing soemthing wrong, and would it be better just to use ereg()?

thanks

jatar_k

6:14 am on Feb 11, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



have you tried is_int [php.net] instead