Write a PHPscript to check whether given number is palindrome or not.
<?php
function isPalindrome($num) {
return strrev($num) == $num ? "Palindrome" : "Not a Palindrome";
}
$num = 121; // Change this number to test
echo "$num is " . isPalindrome($num) . ".";
?>