'; while (stripos($content, $stag, $offset)) { // string to replace $s = stripos($content, $stag, $offset); $e = stripos($content, $etag, $s) + strlen($etag); // inside data $ds = stripos($content, '>', $s) + 1; $de = $e - strlen($etag); // style tag $ss = $s + strlen($stag); $se = $ds - 1; $sstring = substr($content, $s, $e - $s); $sdesc = substr($content, $ss, $se - $ss); $sdata = substr($content, $ds, $de - $ds); mt_srand((double)microtime()*1000000); $rnum = mt_rand(); $new_string = '' . "\n"; $new_string .= '