multiple arrays in a foreach statement
Posted: Sat Aug 04, 2007 1:29 pm
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;
}
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;
}