Showing posts with label PHP strrev. Show all posts
Showing posts with label PHP strrev. Show all posts

Monday, 29 September 2014

strrev in PHP

PHP strrev() function is used to returned the string with characters reversed.

Syntax:

strrev(string)
string : Required. Specifies the input string to reverse.

Example:

<?php
$str_name = "Good Morning";
echo strrev($str_name);
?>
Output will be:
gninroM dooG