strrev

(PHP 4, PHP 5, PHP 7, PHP 8)

strrevInverte una stringa

Descrizione

strrev(string $string): string

Restituisce la stringa string invertita.

Example #1 Invertire una stringa con strrev()

<?php
echo strrev("Hello world!"); // outputs "!dlrow olleH"
?>