← All built-ins / is_string()
is_string()
is_string(mixed $number): bool
Parameters
| Name | Type | Description |
|---|---|---|
| $v | mixed | value to test |
Return value
true when the value is a string.
Example
var_dump(is_string("hi"));
var_dump(is_string(42));bool(true) bool(false)