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;

?>

Documentation

Related : integer

Added in PHP 5.4