strrev() – PHP String Functions

Syntax :

string strrev ( string );

Description :

It’s an inbuilt function of PHP. As its name implies, strrev() function will reverse the string.


Parameter :

[table caption=”” width=”100%” colwidth=”15%|15%|15%|55%” colalign=”left|left|left|left”]
Name, Required /Optional, Value Type, Description

string, Required, String, It is the string in which search will take place.

[/table]


Output :

It will returns the reversed string.


strrev() – PHP Functions Example 1 :
<?php
echo strrev("Hi from tutorialmines.");
?>

Output of above code in the browser is as below:

.senimlairotut morf iH

You may also like...