Question: Write a PHP function isPalindrome that accepts a string as a parameter and returns true if the string is a palindrome and false otherwise.

 Write a PHP function isPalindrome that accepts a string as a parameter  

Write a PHP function isPalindrome that accepts a string as a parameter and returns true if the string is a palindrome and false otherwise. A string is considered a palindrome if it has the same sequence of letters when reversed (for example, "radar","toot", "mom", "a", """"). Your function should be case-insensitive, for example, "Mom" and "RAdar" should be considered palindromes. Please also submit the html code you use to test the correctness of your function.

Step by Step Solution

3.56 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a PHP function isPalindrome that checks whether a given string is a palindrome or not The func... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!