Javatpoint Logo
Javatpoint Logo

Palindrome Number

A palindrome number is a number which remains same when its digits are reversed.

For example, number 24142 is a palindrome number. On reversing it we?ll get the same number.


  • Take a number.
  • Reverse the input number.
  • Compare the two numbers.
  • If equal, it means number is palindrome

Palindrome Number in PHP



PHP Palindrome number 1

Palindrome Number using Form in PHP


We'll show the logic to check whether a number is palindrome or not.


On entering the number 23432, we get the following output.

PHP Palindrome number 2

On entering the number 12345, we get the following output.

PHP Palindrome number 3
Next TopicFibonacci Series

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA