Core Function isVarString
From Sputnik Wiki
isVarString( $variable )
Contents |
Description
Checks if a variable is a string type.
Parameters
variable
The variable to check.
Return Value
Success: Returns true.
Failure: Returns false.
Remarks
None.
Example
$var1 = "Hello World"; println( "Is it?: " . isVarString($var1) ); // Alternative println( $var1 is string ); // Alternative println( $var1 ~~ string );