Generation

generate functionSun, 20 Nov 2022

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

function palindrome_check($string){ if (strrev($string) == $string){ echo "The string is a palindrome"; } else { echo "The string isn't a palindrome"; } } palindrome_check("madam");

Questions about programming?Chat with your personal AI assistant