array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.strrev.php', 1 => 'strrev', ), 'up' => array ( 0 => 'ref.strings.php', 1 => 'Fonctions sur les chaînes de caractères', ), 'prev' => array ( 0 => 'function.strrchr.php', 1 => 'strrchr', ), 'next' => array ( 0 => 'function.strripos.php', 1 => 'strripos', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/strings/functions/strrev.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(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"
?>