When I do hexdump filename.txt
I get the following as output:
00000000 ac5a 5afb c08d 5d15 26d0 2491 e8c9 8917
00000010
When I do <?= bin2hex(file_get_contents('filename.txt')); ?>
I get this:
5aacfb5a8dc0155dd0269124c9e81789
So why is hexdump suggesting the contents should be ac5a5afbc08d5d1526d02491e8c98917
when PHP is suggesting they ought to be 5aacfb5a8dc0155dd0269124c9e81789
? Am I just not interpreting the output of hexdump correctly?