Search This Blog

Friday, 23 January 2015

Reverse word in a string using PHP.

The strrev() function reverses a string.



Example:

<?php

echo strrev("Welcome"); // outputs "emocleW"

?>

No comments:

Post a Comment