Advertisement
2_2002-2004 Debugging and Error Handling #130078

Pallindrome Checker

Check to see if a string is a palindrome in only 5 lines of code!

AI

एआई सारांश: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

सोर्स कोड
original-source
<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>
मूल टिप्पणियाँ (3)
Wayback Machine से पुनर्प्राप्त