Binary Integer¶
Integers can be specified in binary (base 2) notation. Binary integer syntax starts with 0b
and only contains 0 and 1.
<?php
// 12
$binary = 0b1100;
?>
Related : integer
Added in PHP 5.4
The definitive reference with all things PHP, and their definitions.
Contents: