- substr: documentation ( source)
- chr: documentation ( source)
- ord: documentation ( source)
<?php
$input = "";
for ($t=0; $t<250; $t++) $input .= chr($t);
for ($t=0; $t<strlen($input); $t++)
{
echo "ord = ".ord(substr($input, $t, 1)).", substr = ".substr($input, $t, 1)."\n";
}
echo "strlen = ".strlen($input)."\n";
echo("t = $t \n");