What is eregi() replaced with in this instance?
// get value of text inbetween tags
function getContentByTag($tag1, $tag2, $string)
{
if (eregi("$tag1(.*)$tag2", $string, $out)) {
$outdata = $out[1];
}
return $outdata;
}
This post is not a duplicate post as the 3rd example within the referenced post the answer is for that specific usage. I'm guessing my usage is different as the referenced post answers are not working for me.