| |
|
PHP String Reverse |
We can reverse any string by applying strrev function. Here is what a normal
string will look like.
The string = This is a test
The new string after applying the strrev function= tset a si sihT
Here is the code
$st="This is a test";
echo "The string = ".$st."<br>";
$st=strrev($st);
echo "The new string after applying the strrev function = ".$st."<br>";
| |
| Subscribe |
|
Submit your email address and receive
article and product notifications. Your email is safe with us.
|
|
|
|
|
|