Oihana PHP

isOdd.php

Table of Contents

Functions

isOdd()  : bool
Tells whether an integer is odd.

Functions

isOdd()

Tells whether an integer is odd.

isOdd(int $value) : bool
Parameters
$value : int

The integer to test.

Tags
example
use function oihana\core\numbers\isOdd;

isOdd( 7 )  ; // true
isOdd( 4 )  ; // false
isOdd( 0 )  ; // false
isOdd( -3 ) ; // true
author

Marc Alcaraz (ekameleon)

since
1.0.9
Return values
bool

true if $value is odd, false otherwise.

On this page

Search results