reverse string php using loop function code example
Example 1: php foreach reverse
foreach(array_reverse($array) as $var) {
echo $var // Will show in reversed order
}
Example 2: how to reverse a string in php
use strrev(); function
foreach(array_reverse($array) as $var) {
echo $var // Will show in reversed order
}
use strrev(); function