← All docs

is_string()

Checks whether a variable is a string.

is_string()

function is_string(mixed $value): bool

Checks whether a variable is a string.

Parameters:

  • $value (mixed)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how is_string is implemented in the compiler, see the internals page.