Jump to content

multiple arrays in a foreach statement


lehula

Recommended Posts

I want to echo the array $tables[1] and array $tables[2]. I have && signs to show what I'm trying to do.

This obviously doesn't work, but how can I get it to work?

 

 

preg_match_all('/(<table id="friendtable(..).{150,180}font-size:.?.?.?.?pt">)<a/', $text, $tables);

foreach($tables[1] as $whole && $tables[2] as $number)

{

 

echo $whole;

echo $number;

}

Link to comment
https://forums.phpfreaks.com/topic/63337-multiple-arrays-in-a-foreach-statement/
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.