unemployment Posted April 15, 2011 Share Posted April 15, 2011 I don't want to have to use two foreach loops. foreach($verify_partners as $verified) { echo $verified; echo $id; if ($verified == $id) { ?> <div> Remove </div> <?php } } It prints out as Array6Array6 Quote Link to comment https://forums.phpfreaks.com/topic/233842-use-two-foreach-loops/ Share on other sites More sharing options...
lastkarrde Posted April 15, 2011 Share Posted April 15, 2011 Access it with the array index? var_dump() $verified and $id in the loop Quote Link to comment https://forums.phpfreaks.com/topic/233842-use-two-foreach-loops/#findComment-1202158 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.