(PHP 4, PHP 5, PHP 7, PHP 8)
strrev — Inverse une chaîne
Retourne la chaîne string
, après avoir changé l'ordre des caractères.
string
La chaîne à inverser.
Retourne la chaîne inversée.
Exemple #1 Inverser une chaîne avec strrev()
<?php
echo strrev("Hello world!"); // Affiche "!dlrow olleH"
?>