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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -