- substr: documentation ( source)
- print_r: documentation ( source)
<?php
$str = "http://pics.top.rbc.ru/top_pics/uniora/123456";
if ("http://pics.top.rbc.ru/top_pics/uniora/" == substr($str, 0, 39))
{
print_r('Bingo!');
}
else
{
print_r($str);
}