Função strrev() PHP
Exemplo
Inverter a string "I love Shanghai!":
<?php echo strrev("I love Shanghai!"); ?>
Definição e Uso
A função strrev() inverte a string.
Sintaxe
strrev(string)
Parâmetros | Descrição |
---|---|
string | Obrigatório. Especifica a string a ser invertida. |
Detalhes Técnicos
Retorno: | Retorna a string invertida. |
Versão PHP: | 4+ |