hai provato

Codice PHP:
str_replace("//","/"$var); 
?