Credo che la funzione sia questa:

str_replace("/", " ", $testo);

ma non so dove inserirla nel codice