Hi,
 
  I used to implement the hasMore() method like this:
 
  public function hasMore(){
    if (key($this->container) === NULL ) return FALSE;
    if ( (key($this->container)) <=
(count($this->container)-1) )
    {
      return TRUE;
    }else
      return FALSE;
  }
 
  And I think that is what hasMore means, "If an array
has more elements from the current position".

  But it should be available at anywhere Users want
use it. Not only at foreach.

Regards,
Marc


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to