Core Function isString
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> isString( <expression> ) </pre> === Description === Check if variable contains only string chars. === Parameters === ==== expression ==== The string to use. === Retur...")
Newer edit →
(Created page with "<pre> isString( <expression> ) </pre> === Description === Check if variable contains only string chars. === Parameters === ==== expression ==== The string to use. === Retur...")
Newer edit →
Revision as of 13:32, 22 April 2012
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) );