编辑代码

<?php 
$bin=01000110010001100100010000111000;
$strInfo = @unpack("C2chars", $bin);
$typeCode = intval($strInfo['chars1'].$strInfo['chars2']); 
 print_r($strInfo);  
  print_r($typeCode);   
     
    ?>