is_string

is_string -- Finds whether a variable is a string.

Description

int is_string(mixed var);

Returns true if var is a string, false otherwise.

See also is_long(), is_int(), is_integer(), is_float(), is_double(), is_real(), is_object(), and is_array().