> while (list ($key, $val) = each ($info))
 >   {
 >    do stuff
 >   }

$count = 0;
$last = sizeof($info);

While (list($key, $val) = each($info))
{
  if ($count == 0)
  {
    // first time through
  }
  if ($count == $last)
  {
    // last time through
  }
  // do stuff
  $count++;
}




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

Reply via email to