Convert Unicode hex value to bytes with PHP
<p>I need to convert characters, like U+0123 (the Latin Small Letter G With Cedilla) to the appropriate UTF8 hex-encoded bytes like this 0xC4 0xA3 (or c4a3). I know there's a function (or combination of functions) I can use to accomplish this in PHP, but I can't seem to get it right.</p>
