when traversing an array to find a specific value, we often have many different methods, so we also hope that netizens who have done relevant tests or know the answer can help answer this question.
1, foreach traversal array to find a specific value
2, array_map traversal array to find a specific value
3, array_search traversal array to find a specific value
what are the performance differences among them? What order of magnitude of data will be the critical point for the significant differences in the efficiency of the three methods?