phpでユニコード16進数を文字にする

htmlの文字参照phpのhtml_entity_decode関数を使うと良い.

円記号を取りたいときは

print html_entity_decode("¥", ENT_NOQUOTES, 'UTF-8'); // '\'