Page 2 of 2

Posted: Fri Dec 31, 2004 7:38 am
by n00b Saibot
u can use like this

Code: Select all

foreach ($location as $loc)
echo "results for $w_naam held $w_naam at $loc";
See if that helps ya

Posted: Fri Dec 31, 2004 9:17 am
by Robert Plank

Code: Select all

reset($w_naam);
reset($w_datum);
reset($w_plaats);

// $element is not used, this is just so we know how many times to loop
foreach ($w_naam as $element) {
   // Output the current element in the array
   printf('Results for %s held %s at %s', current($w_naam), current($w_datum), current($w_plaats));

   // Advance each pointer to the next element
   next($w_naam);
   next($w_datum);
   next($w_plaats);
}

Posted: Sat Jan 01, 2005 5:34 pm
by pookie62
Thanks for all your help guys !
Got it working the way I want now.