Home » Unlabelled » How can I know that a variable is a number or not using a JavaScript? | PHP
Friday, 2 March 2012
How can I know that a variable is a number or not using a JavaScript? | PHP
bool is_numeric ( mixed var) Returns TRUE if var is a number or a numeric string, FALSE otherwise.or use isNaN(mixed var)The isNaN() function is used to check if a value is not a number.
No comments:
Post a Comment