Created
October 7, 2019 22:05
-
-
Save mrpatg/03b6a50b3dba5014872a29453bbf1914 to your computer and use it in GitHub Desktop.
palendrome
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function isPalendrome($input){ | |
| trim( $input ); | |
| $reverse = strrev( $input ); | |
| if($input == $reverse){ | |
| return TRUE; | |
| } else { | |
| return FALSE; | |
| } | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment