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 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 Link to comment https://forums.phpfreaks.com/topic/233842-use-two-foreach-loops/#findComment-1202158 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.