Core Function GetVarTypeName

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

Contents

Description

Get the common type of a variable as a string

Parameters

variable

The variable to check.

Return Value

The variables common type (BASE type such as INT64, STRING, OBJECT) but not the objects inner type such as class specific etc.

Remarks

None.

Example

$a = 100;
$b = 100.0;
$c = "Hello";
 
println(GetVarTypeName($a));
println(GetVarTypeName($b));
println(GetVarTypeName($c));
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox