I have a decimal value of a utf-32 character:
How can I convert this using php to a string of the hex?
Here is the page for the codes I am using:
dechex is what you need here:
php > echo dechex(21644); 548c
You'll want to use
$hex = dechex($decimal);
Read more here