Pages

Monday, 17 April 2017

Reverse String Program in PHP

Reverse String Program in PHP

Reverse String Program in PHP - Sting is the collection of characters. In php we can write this code using strrev() Function.
Reverse String Program in PHP

In PHP we can reverse any string using strrev() Function. Compare to C Programming here you can perform this code very easily. Here we write Reverse String Program in PHP in very simple and easy way.

Code for Reverse String in PHP

<!DOCTYPE html>
<html>
<body>
<?php
echo strrev("Hello World!");
?>
</body></html>

Output

!dlroW olleH
I hope this code is helpful for you


No comments:

Post a Comment