is_str()

Checks if the argument is a string.

Syntax

is_str(value)

Parameters

Parameter Type Description
value Number/String/None Value to check.

Return Value

Examples

is_str("hello"); // returns 1
is_str(10);      // returns 0
is_str(none());  // returns 0

See also

is_none()
is_num()
is_str()
is_valid()
bool()