is_string

PHP 4, PHP 5, PHP 7, PHP 8
is_string - Find whether the type of a variable is string
Manual
Code Examples

is_string( mixed$value ): bool

Finds whether the type of the given variable is string.

Parameters

value

The variable being evaluated.

Return Values

Returns true if value is of type string, false otherwise.

Related Functions

Example of is_string

Show all examples for is_string

PHP Version:


Function is_string:

Variable handling Functions

Most used PHP functions