Эта функция извлекает строку между $start и $end из $text

                        
<?php
function extractBetween($text,$start,$end)
{
if(preg_match('/'.$start.'(.*)'.$end.'/',$text,$matches)){
return $matches[1];
}
return '';
}
?>
0 13 0
Без комментариев...