• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

check palindrome string

  1. Kepala Suku

    Catatan PHP Function to Find Palindrome

    Write a PHP function that checks whether a passed string is a palindrome or not? A palindrome is word, phrase, or sequence that reads the same backward as forward, e.g., madam or nurses run. function is_palindrome($string){ return strrev($string)==$string?true:false; } Example of use above...