Bon alors j'ai testé avec un array et ça foire completement genre je marque abcdefg il me sort urbcucc
$patterns = array
('/a/','/b/','/c/','/d/','/e/','/f/','/g/','/h/','
/i/','/j/','/k/','/l/','/m/','/n/','/o/','/p/','/q
/','/r/','/s/','/t/','/u/','/v/','/w/','/x/','/y/'
,'/z/');
$replacements = array
('e','n','v','f','y','g','h','j','o','k','l','m','
w','z','a','q','s','t','d','p','i','b','x','c','u'
,'r');
echo preg_replace($patterns, $replacements, $_POST['champ']);