Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Useful for debugging weird character encoding issues.
<?php
function displayChars($str) {
$arr = array();
$chars = str_split($str);
foreach ($chars as $key => $value) {
$arr[] = array($value, ord($value));
}
var_dump($arr);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.