par
Gentoo Warrior » 14 avr. 2005, 11:45
Chez moi, ça fonctionne dans les deux sens pourtant
<?php
$phrase = "Bonjour tout le monde";
$a = array(" ","a","b","c","d","e","f","g","h","i","j","k","k","l","m","n","etc");
$b = array("11","12","85","65","89","45","32","57","68","98","13","09","89","51","48","75","etc");
$c = str_replace($a,$b,$phrase);
echo $c."<br>";
$phrase = $c;
$d = array(" ","a","b","c","d","e","f","g","h","i","j","k","k","l","m","n","etc");
$e = array("11","12","85","65","89","45","32","57","68","98","13","09","89","51","48","75","etc");
$f = str_replace($e,$d,$phrase);
echo $f;
?>
Chez moi, ça fonctionne dans les deux sens pourtant :shock:
[php]
<?php
$phrase = "Bonjour tout le monde";
$a = array(" ","a","b","c","d","e","f","g","h","i","j","k","k","l","m","n","etc");
$b = array("11","12","85","65","89","45","32","57","68","98","13","09","89","51","48","75","etc");
$c = str_replace($a,$b,$phrase);
echo $c."<br>";
$phrase = $c;
$d = array(" ","a","b","c","d","e","f","g","h","i","j","k","k","l","m","n","etc");
$e = array("11","12","85","65","89","45","32","57","68","98","13","09","89","51","48","75","etc");
$f = str_replace($e,$d,$phrase);
echo $f;
?>
[/php]