function svalueall($source,$tag1,$tag2)
{
/**
* modification of the above function that returns an array of all the matches on the page
*/
$source=str_replace($tag1,'<tagged>',$source);
$source=str_replace($tag2,'</tagged>',$source);
preg_match_all('#<tagged>(.*?)</tagged>#',$source,$result);
$return=array();
/**
* haha i get some crap on these sometimes for some reason.
*/
foreach($result as $item){$item=Func::idiotfilter($item);array_push($return,$item);}
return($return[0]);
}
function idiotfilter($string)
{
$string=str_replace("<tagged>",null,$string);
$string=str_replace("</tagged>",null,$string);
return($string);
}