Follow the code:
$minu = range("a", "z");
$maiu = range("A", "Z");
$letras = array_merge($minu, $maiu);
$minusculas = array_merge($minu, $maiu);
When doing a str_replace($Lminusculas, $Lmaiusculas, "TesteSimples");
the following is returned:
lerveSimvses
And, while doing a str_replace($Lmaiusculas, $Lminusculas, "lerveSimvses");
the following is returned:
TistERUephes
However, I wanted to make the second str_replace()
a string go back to the initial state SimpleType .