(PHP 4, PHP 5, PHP 7, PHP 8)
strrev — Invierte un string
$string
devuelve el string, invertido.
string
El chaîne de caractères que será invertido.
Devuelve el chaîne de caractères invertido.
Ejemplo #1 Invertir un string con strrev()
<?phpecho strrev("Hola mundo!"); // Imprime "!odnum aloH"?>