Write a PHP program to check whether the string is palindrome or not?

1 answer

Answer

1110830

2026-04-03 00:35

+ Follow

You can do this:

<?php

if ( $Word === strrev( $Word ) ) {

echo "The Word is a palindrome";

} else {

echo "The Word is not a palindrome";

}

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.