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? -

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

php cli reading files and how to fix it? -