Current Location: Home> Function Categories> strrev

strrev

Reverse a string
Name:strrev
Category:String
Programming Language:php
One-line Description:Invert the string.

Example

Invert the string "I love Shanghai!":

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">echo</span> <span class="token function">strrev</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"I love Shanghai!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Try it yourself

Similar Functions