Php How to delete a character " when parsing?

Tear the page where the text looks like this:

lbbb
<a href="/result?q="r sweeney" Parramatta">"r sweeney" Parramatta</a>



lbbb
<a href="/result?q="henry Thomas muggridge" divorce">"henry Thomas muggridge" divorce</a>

Conclusion do so:

<?php
$trendurl = 'http://sdfsdfsd.com/parserurl';
$gtrend = curl_init();
curl_setopt($gtrend, CURLOPT_USERAGENT, sprintf("Mozilla/%d.0",rand(4,5)));
curl_setopt($gtrend, CURLOPT_URL,$trendurl);
curl_setopt($gtrend, CURLOPT_FAILONERROR, true);
curl_setopt($gtrend, CURLOPT_AUTOREFERER, true);
curl_setopt($gtrend, CURLOPT_RETURNTRANSFER,true);
curl_setopt($gtrend, CURLOPT_TIMEOUT, 30);
$trend = curl_exec($gtrend);
preg_match_all("/<a href=\"[^-->]*>(.*?)<\/a>/is", $trend, $keywords, PREG_PATTERN_ORDER);

$i=27;
while ($i<37)
{
$seourl = $keywords[1];
$seourl = str_replace(' ', '+', $seourl);
$seourl = str_replace('www.', ", $seourl);
$seourl = str_replace('http://', ", $seourl);
$seourl = str_replace('https://', ", $seourl);
$seourl = str_replace('.', ", $seourl);
$seourl = str_replace('"', ", $seourl );
$seourl = str_replace('~', ' ', $seourl);
$seourl = str_replace(',', ' ', $seourl);
$r = $seourl[$i]; 
?>
the <li><a href="/q_<?php echo strtolower($r); ?>"><?php echo $keywords[1][$i]; ?></a></li>
<?php
$i++;
}
curl_close($gtrend);
?>


How to remove "? Need to output clean code, without symbol"
July 9th 19 at 13:11

Find more questions by tags PHP