strrev() function is used to reverse a string.
<?php
$string = "Hello, world!";
$reversedString = strrev($string);
echo $reversedString;
?>
Output:
!dlrow ,olleH
strrev() function is used to reverse a string.
<?php
$string = "Hello, world!";
$reversedString = strrev($string);
echo $reversedString;
?>
Output:
!dlrow ,olleH