PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

is_string

Tags: PHP 5.x PHP 7.x PHP 8.x

is_string — Find whether the type of a variable is string.

Description

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.

is_string - New snippets