Jump to content

[SOLVED] preg_match_all loop


Thomisback

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.