Core Function GetVarTypeName

From Sputnik Wiki
Revision as of 12:37, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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