5 lines
82 B
PHP
5 lines
82 B
PHP
<?php
|
|
function is_palindrome($string) {
|
|
return $string == strrev($string);
|
|
}
|
|
?>
|