To discuss an interesting question, why does the PHP manual call the array to be searched $ haystack ??? Mixedarray_search (mixed $ needle, array $ haystack [, bool $ strict]) query Dictionary. the Chinese meaning of haystack is a zombie. why is it called? The reason is that the array to be selected is like a pile of straw. are each element pieced together? An interesting question is discussed. Why does the PHP manual call the array to be searched $ haystack ???
Mixed array_search (mixed $ needle, array $ haystack [, bool $ strict])
The dictionary used for searching. why is it named after haystack? The reason is that the array to be selected is like a pile of straw. are each element pieced together?
Very interesting. Let's discuss it together!
------ Solution --------------------
That's understandable.
------ Solution --------------------
Looking for a needle from a heap of hay, isn't it pretty good?
------ Solution --------------------
Haha, yes, yes!
A foreigner's thinking is really interesting!