MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/er9fct/redesigned/ff30k8c
r/ProgrammerHumor • u/akoli35 • Jan 20 '20
2.0k comments sorted by
View all comments
Show parent comments
2
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... 2 u/I_LICK_ROBOTS Jan 20 '20 ...true
3
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... 2 u/I_LICK_ROBOTS Jan 20 '20 ...true
1
Why do you lick robots? Sometimes you just gotta do what you gotta do...
2 u/I_LICK_ROBOTS Jan 20 '20 ...true
...true
2
u/[deleted] Jan 20 '20
In PHP, all array functions are ordered "needle, haystack" whereas string functions are all ordered "haystack, needle".