Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Palindrome
voodooKobra
Mar 20th, 2014
203
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
function is_palindrome($string) {
$string = preg_replace('/[^a-z]/', '', strtolower($string) );
return $string === strrev($string);
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
MAGA250
1 hour ago | 1.48 KB
Nightlight - Imprisoning Pitch
10 hours ago | 0.54 KB
Ombric - Astral Projection
10 hours ago | 0.77 KB
Katherine/Nightlight - Reindeer
11 hours ago | 1.03 KB
Djinni - Swords
11 hours ago | 0.44 KB
Djinni - Limits
11 hours ago | 0.62 KB
Djinni - Throw
11 hours ago | 1.44 KB
Djinni - Boulders
11 hours ago | 0.49 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!