samedi 1 novembre 2014

how do I remove this substring from every value in an array?


Vote count:

0




Im trying to use str_replace to remove this little piece from an array of links. This is what I have so far...



foreach ($link_body as $key => $unfinished_link)
{
// take that non-link piece off the end of each link
if (
stripos($unfinished_link, '">') !== false

)
{
str_replace('">',"", $unfinished_link);
}
else{
echo "<font color='#00FF66'>$unfinished_link</font><br>";
}
}


I keep getting results that look like this



http://ift.tt/1trNzeB">


Im trying to remove the '">' portion. What am I missing? Thx



asked 1 min ago







how do I remove this substring from every value in an array?

Aucun commentaire:

Enregistrer un commentaire