public function next()
	{
		// Get the object offsets.
		$keys = $this->keys();

		// Check if _current has been set to false but offsetUnset.
		if ($this->current === false && isset($keys[0]))
		{
			// This is a special case where offsetUnset was used in a foreach loop and the first element was unset.
			$this->current = $keys[0];
		}
		else
		{
			// Get the current key.
			$position = array_search($this->current, $keys);

			// Check if there is an object after the current object.
			if ($position !== false && isset($keys[$position + 1]))
			{
				// Get the next id.
				$this->current = $keys[$position + 1];
			}
			else
			{
				// That was the last object or the internal properties have become corrupted.
				$this->current = null;
			}
		}
	}
public function next()
	{
		// Get the object offsets.
		$keys = $this->keys();

		// Check if _current has been set to false but offsetUnset.
		if ($this->current === false && isset($keys[0]))
		{
			// This is a special case where offsetUnset was used in a foreach loop and the first element was unset.
			$this->current = $keys[0];
		}
		else
		{
			// Get the current key.
			$position = array_search($this->current, $keys);

			// Check if there is an object after the current object.
			if ($position !== false && isset($keys[$position + 1]))
			{
				// Get the next id.
				$this->current = $keys[$position + 1];
			}
			else
			{
				// That was the last object or the internal properties have become corrupted.
				$this->current = null;
			}
		}
	}
public function next ( ) { // Get the object offsets. $ keys = $ this -> keys ( ) ; // Check if _current has been set to false but offsetUnset. if ( $ this -> current === false && isset ( $ keys [ 0 ] ) ) { // This is a special case where offsetUnset was used in a foreach loop and the first element was unset. $ this -> current = $ keys [ 0 ] ; } else { // Get the current key. $ position = array_search ( $ this -> current , $ keys ) ; // Check if there is an object after the current object. if ( $ position !== false && isset ( $ keys [ $ position + 1 ] ) ) { // Get the next id. $ this -> current = $ keys [ $ position + 1 ] ; } else { // That was the last object or the internal properties have become corrupted. $ this -> current = null ; } } }
Advances the iterator to the next object in the iterator.

@return  void

@since   1.0
Advances the iterator to the next object in the iterator .