15

Was it needle haystack, or haystack needle?

Comments
  • 4
    PHP loves to switch the order of these 2 from function to function.
  • 2
    The saying is "find a needle in a haystack", but yeah, PHP is not too consistent about this all the time
  • 1
    @kanduvisla Sometimes it's this Haystack contains a needle.
  • 1
    It depends if you're trying to find the needle in the haystack or the haystack in the needle. Right?
  • 0
    same goes for the replace function in some languages. replace this with that in this or use this and replace those with these or replace with this where it finds that in this and so on...
Add Comment