Core Function isString
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> isString( <expression> ) </pre> === Description === Check if variable contains only string chars. === Parameters === ==== expression ==== The string to use. === Retur...") |
m (1 revision) |
(One intermediate revision by one user not shown) |
Latest revision as of 12:37, 14 June 2015
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) );