I have read the PHP Manuel about array_filter
An odd number has its zeroth (least significant) bit set to 1:
v
0 = 00000000b
1 = 00000001b
2 = 00000010b
3 = 00000011b
^
The expression $var & 1 performs a bitwise AND operation between $var and 1 (1 = 00000001b). So
the expression will return:
$var has its zeroth bit set to 1 (odd number)$var has its zeroth bit set to 0 (even number)