- substr: documentation ( source)
- var_dump: documentation ( source)
- strpos: documentation ( source)
- chr: documentation ( source)
- ord: documentation ( source)
<?php
$input = "";
for ($t=0; $t<2; $t++) $input .= chr($t);
echo "input = ".$input."\n\n";
var_dump(strpos($input, "."));
for ($t=0; $t<strlen($input); $t++) echo "[".ord(substr($input, $t, 1))."] ";