Skip to content

Instantly share code, notes, and snippets.

Last active December 12, 2015 12:19
What would you like to do?
Useful for debugging weird character encoding issues.
function displayChars($str) {
$arr = array();
$chars = str_split($str);
foreach ($chars as $key => $value) {
$arr[] = array($value, ord($value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment