Sometimes, you may need to check the type of a given variable or expression: the following functions will do the job:
expr
)Return true if expr
is an integer, false otherwise
expr
)Return true if expr
is a string, false otherwise
expr
)Return true if expr
is an array, false otherwise
There is no a isbool()
function since booleans are
implemented as integers.
This manual can be downloaded from http://www.g-cows.org/.