- str_replace: documentation ( source)
<?php
$StringToReplace = array("\"","'");
$text = "Plagiarism is the \"wrongful appropriation\" and \"stealing and publication\" of another author's \"language\"";
echo "<pre>$text</pre>";
foreach($StringToReplace as $String){
$text = str_replace($String,"",$text);
}
echo "<hr>";
echo "<pre>$text</pre>";