April 14, 2003 | Category:

Palindromes

Recently, to solve a puzzle, I wrote a function in PHP that determines whether or not a given string is a palindrome. After a little work, it now works perfectly. It’s not case-sensitive, removes white-space and get’s rid of non-alphanumeric characters.

It’s been added to the Code archive and can be viewed directly.