str_replace è la funzione giusta...
metti nell'array ciò che non deve comparire e il gioco è fatto..
Codice PHP:
<?
$text = "L'ultima notte";
$canc = array("'", " ");
$testo = str_replace($canc, "", $text);
print $testo;
?>
str_replace è la funzione giusta...
metti nell'array ciò che non deve comparire e il gioco è fatto..
Codice PHP:
<?
$text = "L'ultima notte";
$canc = array("'", " ");
$testo = str_replace($canc, "", $text);
print $testo;
?>