Skip to content

Commit 7a4d7fe

Browse files
authored
Create PalindromeNumber.php
1 parent 6255ac1 commit 7a4d7fe

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Easy/PalindromeNumber.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
class Solution {
3+
4+
/**
5+
* @param Integer $x
6+
* @return Boolean
7+
*/
8+
function isPalindrome($x) {
9+
return (string)$x === strrev($x);
10+
}
11+
}

0 commit comments

Comments
 (0)