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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -