- substr: documentation ( source)
- strrpos: documentation ( source)
<?php
for($i=0; $i<10000; $i++) {
$dot = strrpos("bla.txt", '.');
if ($dot === false)
{
return '';
}
echo (string) substr("bla.txt", $dot + 1);
}
This script was stopped while abusing our resources