Posted by levidicom on 05/20/07 15:15
foreach($test as $var1){
foreach($test2 as $var2)
{
echo '"var1: " . $var1[1] . "<br>"var2: " . $var2[1] . "<br>
\n"';
}
}
--------------------
The $tests have values just that this nested loop doesnt work i keep
getting this error message
Warning: Invalid argument supplied for foreach()
What is the correct way to nest a foreach
Thanks alot
Navigation:
[Reply to this message]
|