Core Function isString
From Sputnik Wiki
isString( <expression> )
Contents |
Description
Check if variable contains only string chars.
Parameters
expression
The string to use.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
Returns true if the expression or variable given as expressions TYPE is either a numeric such as INT32 or STRING etc.
Returns false if it is not such as array, object etc.
Note - This will return true even if an empty string is given since even an empty string is still a string data type.
Example
$str = "The quick brown fox"; MsgBox( isString($str) );