A Scripting Language for Web, Linux and Windows

A Scripting Language for Web, Linux and Windows

Datatype functions

The following datatype and variable functions are supported. See also chapter Datatypes.

Function/Arguments Return Description
isset (mixed &var1...) bool Return true if one or more variables var are defined and not null. isset() is also usable for array keys. For example isset(myArray['key']) will return true if array key with name 'key' hold a value that is not null.
unset (mixed &var1...) true Unset/Remove one or more variables var. After operation the variables are undefined. unset() is also usable for array keys. For example unset(myArray['key']) will remove the entry with name 'key'. Everytime true is returned.
empty (mixed arg) bool Return true if arg is empty. Examples for empty values: "",0, false, array(), null - In difference to isset() and PHP it will not work for undefined variables but work for not existing array keys. If variable is not defined empty() will abort the program with error.
gettype (mixed arg) string Get the name of the datatype of given argument arg.
Possible return values are: number, string, boolean, array, handle, null
is_array (mixed arg) bool Return true if arg is an array.
intval (mixed arg) number Convert arg to integer number.
doubleval (mixed arg) number Convert arg to floating point double number.
strval (mixed arg) string Convert arg to string.

back to Home

V1 Version 0.96 - Documentation generated Wed, 03 Jan 2024 12:21