Today I learned that the parameter order in some PHP functions isn't totally arbitrary! strings = (haystack, needle) arrays = (needle, haystack) 🤯

12:39 PM · Jan 5, 2021

5
6
46
Replying to @aschmelyun
That's an interesting pattern, I also didn't know that. But that leads me to...
0
0
2
GIF
Replying to @aschmelyun
No PHP function is made arbitrary. They all follow C functions parameters. Btw, with IDE you really don't care memorising this 'inconsistencies' so it's not problem at all...
0
0
0
Replying to @aschmelyun
Yesterday I learned order matters in 7.4 but not in 7.2 for implode ( $glue , $pieces )
0
0
0
phpsadness.com amongst others 😅
0
0
0
Replying to @aschmelyun
Rasmussen has been saying this since day 1 ;)
0
0
0