Name

is_scalar

Synopsis

bool is_scalar(mixed value)

Returns true if value is a scalar value—an integer, Boolean, floating-point value, resource, or string. If value is not a scalar value, the function returns false.

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.