PHP Example | Reverse a PHP String

This php example code will introduce us how to reverse a php string.

function Reverse($str){
    return strrev($str);
}
  
// Driver Code
$str = "NoteHope";
echo Reverse($str)