Binary Integer¶
Integers can be specified in binary, or base 2, notation. Binary integer syntax starts with 0b and only contains 0 and 1.
<?php
// 12
$binary = 0b1100;
?>
Related : integer, Binary, Hexadecimal Integer, Octal Integer
Added in PHP 5.4