ciao a tutti, spero possiate aiutarmi a risolvere questo problema, che a me sembra molto stupido ma non riesco a risolverlo.

ho scritto una funzione per manipolare un certo numero di stringhe, che uinserisco nelle pagine del mio sito tramite un include, il file è
functions.php

Codice PHP:
<?php  
function strcorr($str) { 
$str stripslashes($str); 
$str mysql_real_escape_string($str); 
$str str_replace("à""a'"$str); 
$str str_replace("è""e'"$str); 
$str str_replace("é""e'"$str); 
$str str_replace("ì""i'"$str); 
$str str_replace("ò""o'"$str); 
$str str_replace("ù""u'"$str); 
return 
$str

?>
dopodiche nelle pagine in cui mi serve manipolare le stringhe con questa funzione scrivo

Codice PHP:
<?php  
include("functions.php");
$new_indirizzo $_POST['indirizzo'];
$new_indirizzo strcorr($new_indirizzo);
?>
ma la stringa non viene assolutamente modificata. qualcuno sa dirmi come mai, per favore?
grazie, ciao