I have made my own array with all the letters, numbers and most of the symbols and given each one a number for exemple 'a' = 19; How do I replace the $string letters/numbers with the numbers in the array so that $newString = 19202122 for example?
$string = 'abcd';
$stringList = array(
19 => 'a',
20 => 'b',
21 => 'c',
22 => 'd',
};
$newString = 19202122;
'a' => 19and so on.