/** * Return the key of the current element * * @return scalar scalar on success, or <b>NULL</b> on failure. */ public function key() { if ($this->sendHeaders && !$this->headersSent) { return -1; } return parent::key(); }