Reverse String using PHP

strrev function

<?php

$text = 'Hello world';
$result = strrev($text);

echo $result;

Leave a Comment

Cancel reply

Your email address will not be published.