Lets say I have some code:
$text = $_POST[\'secret\']; $replaces = array( \'a\' => \'s\', \'b\' => \'n\', \'c\' => \'v\',
this will be your solution
$text1 = ''; for($i=0; $i
or else you can use like this
$text = strtr($text,$replaces);