binary - How to reverse this php code "pack("L", 1000);"? -
i have code this:
echo bin2hex( pack( "l", 1000 ) );
which prints: e8030000
now, having e8030000
, how can reverse int 1000 ?
update:
found answer: unpack( "l", ( pack( "h*", 'e8030000' ) ) );
answer: unpack( "l", ( pack( "h*", 'e8030000' ) ) );
Comments
Post a Comment