Home > PHP > Function > Variable handling > is_string()

is_string()

is_string - Find whether the type of a variable is string

Syntax

bool is_string (mixed $var)

Arguments

  • var - The variable being evaluated.

Description

Finds whether the type given variable is string.

Version

PHP 4, 5

Return value

Returns TRUE if var is of type string, FALSE otherwise.