Core Function GetVarTypeName
From Sputnik Wiki
(Difference between revisions)
(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) |
(One intermediate revision by one user not shown) |
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));