Submitted by newaction on Mon, 2012-05-21 15:05
-----
function getTextBetween($start, $end, $text)
{
$start_from = strpos($text, $start);
$start_pos = $start_from + strlen($start);
$end_pos = strpos($text, $end, $start_pos + 1);
$subtext = substr($text, $start_pos, $end_pos);
return $subtext;
} - Login to post comments
