if(isset($_POST["aggiorna"])) { $hwrite = file_get_contents("lang/$loc.php"); foreach($lang as $id=>$post) { if($_POST["$id"] != $post) str_replace($post,$_POST["$id"],$hwrite); } file_put_contents("lang/$loc.php"); }