I\'m investigating encodings in PHP5. Is there some way to get a raw hex dump of a string? i.e. a hex representation of each of the bytes (not characters) in a string?
echo implode(array_map( fn ($a, $b) => sprintf("%-26s%-8s\n", $a, $b), str_split(implode(' ', str_split(bin2hex($string), 2)), 24), str_split($string, 8) ));