Haystack-Needle-Sheet

Permanent Link: Haystack-Needle-Sheet 4. August 2009 RSS Feed for comments on RSS-Feed für Kommentare zu: Haystack-Needle-Sheet comments feed

Surely every PHP developer has come across the PHP Haystack-Needle-Phenomenon: Mostly the parameter order is $haystack, $needle but in some cases it's $needle, $haystack for no apparent reason. Trying to find regularities I found out that it's only the array functions that use needle, haystack instead of haystack, needle - assuming I didn't forget any functions. For that reason I created a Haystack-Needle-Sheet, which shows you which function uses haystack, needle and which one needle, haystack.

If you should come across functions that are missing on this list, please let me know.

You can download the Haystack-Needle-Sheet here

0 comments

No Comments yet.

Write a comment

(will not be published)