PHP from symbol to hex
<p>I have a chinese character set as a variable with character encoding as utf-8:</p>

<pre><code>$a='列';
</code></pre>

<p>From this, how can I get the value '5217' assigned to a string (<code>$b</code>) (possibly using UTF-16? but there might be a better way to do it)?  </p>

<p>Codes:
<a href="http://www.fileformat.info/info/unicode/char/5217/index.htm" rel="nofollow">http://www.fileformat.info/info/unicode/char/5217/index.htm</a></p>
