Core Function isVarShort
From Sputnik Wiki
isVarShort( $variable )
Contents |
Description
Checks if a variable is a signed 16-bit integer type.
Parameters
variable
The variable to check.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
Short is an Alias for Int16.
Example
$var1 = (short)100; println( "Is it?: " . isVarShort($var1) ); // Alternative println( $var1 is Int16 ); // Alternative println( $var1 ~~ Int16 );