number decbin ( string binary_num ) converts a binary number into a decimal number : decbin « Math « PHP






number decbin ( string binary_num ) converts a binary number into a decimal number

 
<?
    print decbin("10000"); // 16
?>
  
  

Related examples in the same category

1.string decbin ( int num ) converts a decimal number into a binary number