reverse - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of reverse.php

  1. <?php  
  2. function mb_strrev($str){
  3.     $r = '';
  4.     for ($i = mb_strlen($str); $i>=0; $i--) {
  5.         $r .= mb_substr($str, $i, 1);
  6.     }
  7.     return $r;
  8. }
  9. echo mb_strrev("❤WTOOLS☆");
  10.  
File Description
  • reverse
  • PHP Code
  • 13 Jun-2021
  • 186 Bytes
You can Share it: