Reverse string in PHP
<?php
echo strrev("Hello World!");
?>
how to reverse a string in php
use strrev(); function
PHP strrev — Reverse a string
<?php
echo strrev("Hello world!"); // outputs "!dlrow olleH"
?>
<?php
echo strrev("Hello World!");
?>
use strrev(); function
<?php
echo strrev("Hello world!"); // outputs "!dlrow olleH"
?>
In this page (written and validated by A. Gawali) you learned about . What's Next? If you are interested in completing PHP tutorial, we encourage you simply to start here: PHP Tutorial.
Share On: |