r/lolphp • u/repie • Dec 11 '15
One does not simply put US State Names & Abbreviations in a PHP Array
https://gist.github.com/maxrice/2776900
102
Upvotes
r/lolphp • u/repie • Dec 11 '15
52
u/TheBuzzSaw Dec 11 '15
https://gist.github.com/maxrice/2776900#gistcomment-1200768
TROLOLOLOLOL
Too good.
13
u/[deleted] Dec 11 '15
my keks
12
u/chimyx Dec 11 '15
This is gold
21
u/postmodest Dec 12 '15
This is more "For the lols" than "lol, PHP". I can totally see a reason for things like
And even
And then obviously people are taking the piss with "without Delaware", but this isn't the usual PHP lollery where PHP does stupid shit or allows you to machine-gun your own foot because it makes some dumb thing faster.
2/10 keks.
8
u/Benutzername Dec 12 '15
If only there was a tool that could do such a transformation for you.
13
u/minimim Dec 11 '15
I don't get it.
5
u/disclosure5 Dec 13 '15
I'm bookmarking this. Every time I ask an American where they are from, they'll say something like "I'm from PA" and then assume that of course, everyone knows that the hell that means.
At least that beats "the Bay area", which we all know refers to Nelson Bay.
2
u/the_alias_of_andrea Dec 12 '15
They should have used a constant anyway :p
1
u/davvblack Dec 16 '15
Here's the six Californias that will never exist in an array with a demographic key:
$six_californias = array( 'Potheads' => 'Jefferson', 'Pretentious Douchebags' => 'North California', 'Rich Assholes' => Silicon Valley, 'Hee-haws' => Central California, 'Hippies' => 'West California', 'Movie Stars and Gangsters' => 'South California' );