fork(277) download
  1. <?php
  2.  
  3. $i = 123456;
  4. $ar = unpack("C*", pack("L", $i));
  5.  
  6. print_r($ar);
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
Array
(
    [1] => 64
    [2] => 226
    [3] => 1
    [4] => 0
)