Thomisback Posted June 1, 2008 Share Posted June 1, 2008 Hi, Second question: I want to make a foreach statement for my preg_match_all query. I know it's a multidimensional Array so I tried: $i = 0; while ($i < count ($match) ) { foreach ($match AS $print) { echo $print[$i].'<br />'; } $i++; } But this doesn't work properly, any suggestions? Link to comment https://forums.phpfreaks.com/topic/108236-solved-preg_match_all-loop/ Share on other sites More sharing options...
trq Posted June 1, 2008 Share Posted June 1, 2008 What does... <?php print_r($match); ?> produce? You will likely need recursion. Link to comment https://forums.phpfreaks.com/topic/108236-solved-preg_match_all-loop/#findComment-554851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.