strrev

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

strrevReverte uma string

Descrição

strrev(string$string): string

Retorna a string revertida.

Parâmetros

string

A string a ser revertida.

Valor Retornado

Retorna a string revertida.

Exemplos

Exemplo #1 Revertendo uma string strrev()

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