Published on January 26, 2024By DeveloperBreeze
// Original string
$originalString = 'Hello, World!';
// Use strrev to reverse the string
$reversedString = strrev($originalString);
// Display the reversed string
echo 'Original String: ' . $originalString . "\n";
echo 'Reversed String: ' . $reversedString;
Comments
Please log in to leave a comment.