Core Function GetVarTypeName

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> GetVarType( $variable ) </pre> === Description === Get the common type of a variable as a string === Parameters === ==== variable ==== The variable to check. === Retu...")
 
m (1 revision)

Revision as of 21:40, 11 August 2014

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