how to check a word weather it's a palimdrome or not in PHP???

Recommended Answers

All 2 Replies

Hi accioportkey,
Could you tell me what "palimdrome" means?
As I'm not an english native,I don't understand this word.

Thanks.

The word is correctly spelled "palindrome". It's a sequence of letters that when read backwards says the same thing.

Examples:
wow
mom
Madam, I'm Adam

I really doubt PHP has a function to test if a word is a palindrome. Therefore, you'll have to use string manipulation functions to do so. (That's a hint and all you're going to get until you show effort on what sounds like a homework problem.)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.