$sourcestring=$html;
preg_match_all('/<font color=\"#FFFFFF\"><b>(.*?)<\/b>/',$sourcestring,$match);
//echo "<pre>".print_r($match,true);
echo($match[0][0]);
I was wondering how I could loop through $match
variable 32 times with a for
loop or while
loop? The only way I know how to print out the elements is manually type:
echo $match([0][1]); .. /// echo $match([0][1]);
Can someone please explain to me how I can iterate through the array preg_match_all
is making?