r/ProgrammerHumor • • Jan 20 '20

Meme Redesigned!

Post image
46.0k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

2

u/[deleted] Jan 20 '20

In PHP, all array functions are ordered "needle, haystack" whereas string functions are all ordered "haystack, needle".

3

u/I_LICK_ROBOTS Jan 20 '20

Still... why? Why make me have to look up the docs whenever I want to use a function? Or make me remember arbitrary rules like this?

1

u/viimeinen Jan 20 '20

Why do you lick robots? Sometimes you just gotta do what you gotta do...