title: How can I get a hex dump of a string in PHP?
body: <p>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?</p>