Core Function GetVarTypeName

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
m (1 revision)
 

Latest revision as of 12:37, 14 June 2015

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