Core Function isVarInt

From Sputnik Wiki
Jump to: navigation, search
isVarInt( $variable )

Contents

Description

Checks if a variable is a signed 32-bit integer type.

Parameters

variable

The variable to check.

Return Value

Success: Returns true.

Failure: Returns false.

Remarks

Int is an alias for Int32.

Example

$var1 = (int)100;
println( "Is it?: " . isVarInt($var1) );
// Alternative
println( $var1 is int  );
// Alternative
println( $var1 ~~ int  );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox