src/Neuron/Collections/Collection.php
public function first ()
	{
		if (!is_array($this->data)) return $this->data;
		if (!count($this->data)) return null;
		reset($this->data);
		return $this->data[key($this->data)];
	}
public function first ()
	{
		if (!is_array($this->data)) return $this->data;
		if (!count($this->data)) return null;
		reset($this->data);
		return $this->data[key($this->data)];
	}
public function first ( ) { if ( ! is_array ( $ this -> data ) ) return $ this -> data ; if ( ! count ( $ this -> data ) ) return null ; reset ( $ this -> data ) ; return $ this -> data [ key ( $ this -> data ) ] ; }
Return the very first element.
Return the very first element .