knowram Posted May 23, 2007 Share Posted May 23, 2007 here is an example of the code that I am using <?php $a = array(array('s'), array('p', 'r'), array('o')); if (in_array(array('p'), $a)) { echo "'p' was found in array\n"; } ?> Is it possible to set up the in_array function so that the above if statement will return true? Link to comment https://forums.phpfreaks.com/topic/52665-solved-help-with-in_array-serch/ Share on other sites More sharing options...
knowram Posted May 23, 2007 Author Share Posted May 23, 2007 never mind i think i just found a function in the comments section of in_array on php.net Link to comment https://forums.phpfreaks.com/topic/52665-solved-help-with-in_array-serch/#findComment-259988 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.