PHP » GoLang |
login |
register |
about
|
|
is_string(PHP 4, PHP 5, PHP 7) is_string — Find whether the type of a variable is string Parameters
Return Values
Returns Examples
Example #1 is_string() example
<?phpThe above example will output:
is_string(false) = bool(false)
is_string(true) = bool(false)
is_string(NULL) = bool(false)
is_string('abc') = bool(true)
is_string('23') = bool(true)
is_string(23) = bool(false)
is_string('23.5') = bool(true)
is_string(23.5) = bool(false)
is_string('') = bool(true)
is_string(' ') = bool(true)
is_string('0') = bool(true)
is_string(0) = bool(false)
See Also
|
more
Most requested
more
Last requests
|