> Well, this is the hard way to do things, and very inefficient but:
>
>  foreach(array_slice($z['distance'], $start, 10) {
>    //...
>  }

If you think there's a better way of doing it I would like to hear it.

However this is resulting in an Parse error on the foreach line:

  foreach(array_slice($z['distance'], $start, 10)) {
  $newuser = $z['user'][$k];
  echo $newuser . " - " . $v . "<br>";
   }

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to