Core Function isVarNumber
From Sputnik Wiki
isVarNumber( $variable )
Contents |
Description
Checks if a variable is any integer or float/double type.
Parameters
variable
The variable to check.
Return Value
Success: Returns true.
Failure: Returns false.
Remarks
None.
Example
$var1 = 100; println( "Is it?: " . isVarNumber($var1) );