UTILITY

is_odd()

Test whether an integer is odd.

Signature

bool is_odd(int $value)

Example

is_odd(41); // true

Available from: 1.5.0

Reference navigation

Previous: is_json()

Next: is_url()

Back to utilities