You can do this:
<?php
if ( $word === strrev( $word ) ) {
echo "The word is a palindrome";
} else {
echo "The word is not a palindrome";
}
Chat with our AI personalities
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
The string in the question contains two full stops: it is not a number in a recognised form.
barsanabegam
#include<stdio.h> #include<conio.h> void main()
23.504 = (2 x 10) + (3 x 1) + (5/10) + (0/100) + (4/1000)