Blog Details

how to Reverse a string in php


                                
                                    <h2>* PHP strrev() Function :-</h2>
<ul>
	<li><span style="font-size: 13px;">The strrev() function reverses a string.</span></li>
</ul>
<h2>Syntax :</h2>
strrev(<em>string</em>)
<h2><strong>Example :</strong></h2>
&lt;html&gt;
&lt;body&gt;

<span style="color: #ff0000;">&lt;?php
echo strrev("Hello World!");
?&gt;</span>

&lt;/body&gt;
&lt;/html&gt;
<h2><strong>Output :</strong></h2>
!dlroW olleH
                                    


Categories

Core_PHP

Latest posts

13.05.14
Implementing CRUD Operations ¶

<ul> <li>Now comes the fun part. We would like t

13.05.14
View

<ol> <li><a href="http://www.yiiframework.com/do

13.05.14
Creating Model

<ol> <li><a href="http://www.yiiframework.com/do

Get Free Quote