|
|
Tutorials » Php »
|
Topic |
What is strrev Function?
|
|
Explanation |
|
In PHP, this function is used to reverse a given string.
Syntax:
strrev(string)
In the above syntax the string is reversed.
Example:
<?php
echo strrev("Hi folks!");
?>
Result:
!sklof iH
In the above example the string "Hi folks" is displayed in the reverse order from right to left.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|