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

Monday, April 30, 2012

PHP strrev Function Tutorial


strrev Function
Syntax:strrev(string)
The strrev() function is used to to reverse a string.
Example
        <?php
       $str = 'This is a test';
       $str_reversed = strrev($str);
       echo $str_reversed;
        ?>
Output
tset a si sihT