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? Quote Link to comment 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 Quote Link to comment 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.