This is an old revision of the document!
WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Return 1 if the variable is a string
variable: Variable or expression to be evaluated
1 (true) if a string, 0 (false) if not a string
<? $x=1.0; print(is_string($x)); //outputs 0, $x is a float $y="1.0"; print(is_string($y)); //outputs 1, $y is a string $z='' print(is_string($z)); //outputs 1, $z is an empty string ?>
is_int() - Return 1 if the variable is an integer
is_float() - Return 1 if the variable is a float
is_numeric() - Return 1 if the value is numeric (integer, float or string)
is_array() - Return 1 if the variable is an array