suresh_kamrushi Posted October 25, 2011 Share Posted October 25, 2011 Suppose i have a multidimensional array like: $a = array(array('p', 'h'), array('p', 'r'), 'o'); And i want to search value 'p' from this. Is there any inbuilt function for this in php? I just dont want to write code for this. in_array and array_search do not search in multidimention array. So please help me out this. Thanks in Advance!!! Quote Link to comment https://forums.phpfreaks.com/topic/249788-how-to-search-value-in-multidimension-array/ Share on other sites More sharing options...
requinix Posted October 25, 2011 Share Posted October 25, 2011 You don't want to write code for something as trivial as this? Quote Link to comment https://forums.phpfreaks.com/topic/249788-how-to-search-value-in-multidimension-array/#findComment-1282152 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.