Need Programming Assignment Help?

Get Help with Programming Assignment in Java, C/C++, Dot Net, PHP, Database and UML Diagrams

Palindrome Checker in PHP

Palindrome Checker in PHP

Palindrome Checker : PHP Palindrome check If String Is A Palindrome. This function, as the name suggests, willcheck to see if a given string is a palindrome. That is, it reads the same backwards, as it does forwards.

<html>
<head>
<title>Palindrome Checker</title>
</head>
<body>
<?php
$str_reversed = strrev($str);
if ($str == $str_reversed) {
 print("\'$str\' is a palindrome.<br>\n");
} else {
 print("\'$str\' is <b>not</b> a palindrome.<br>\n");
}
?>
</body>
</html>