<?php$number = bindec ( "111" // string $binary_string);?>
$number = 7
7
#1
bindec
("110011")
#2
("000110011")
#3
("111")