DEV Community


Discussion on: What's that piece of code that you have to Google *every time*?

bjorngrunde profile image
Björn Grunde

Every single haystack/needle argument order for any PHP function that uses them.
I mean did the core team meeting go like:
Dev1: Hey let's decide the order for arguments in array functions.
Dev1: I think we should use the order; needle, haystack, optional.
Dev2: That's not fun. Let the order always be random, also let's make those functions also solve several problems at once so we can have more arguments thrown in.
Rest of devs: Applauds