(PHP 5 >= 5.0.0, PHP 7) Checks if current position is valid abstract public boolean Iterator::valid ( void ) This method is called after Iterator::rewind() and Iterator::next() to check if the current position is valid. Returns: The return value will be casted to boolean and then evaluated. Returns TRUE on success or FALSE on failure.
(PHP 5 >= 5.0.0, PHP 7) Rewind the Iterator to the first element abstract public void Iterator::rewind ( void ) Rewinds back to the first element of the Iterator. Note: This is the first method called when starting a foreach loop. It will not be executed after foreach loops. Returns: Any returned value is ignored.
(PHP 5 >= 5.0.0, PHP 7) Move forward to next element abstract public void Iterator::next ( void ) Moves the current position to the next element. Note: This method is called after each foreach loop. Returns: Any returned value is ignored.
(PHP 5 >= 5.0.0, PHP 7) Return the key of the current element abstract public scalar Iterator::key ( void ) Returns the key of the current element. Returns: Returns scalar on success, or NULL on failure. Exception: Issues E_NOTICE on failure.
(PHP 5 >= 5.0.0, PHP 7) Return the current element abstract public mixed Iterator::current ( void ) Returns the current element. Returns: Can return any type.
(No version information available, might only be in Git) Clone the error final private void Error::__clone ( void ) Error can not be clone, so this method results in fatal error. Returns: No value is returned. Exception: Errors are not clonable.
(No version information available, might only be in Git) String representation of the error public string Error::__toString ( void ) Returns the string representation of the error. Returns: Returns the string representation of the error. Examples: Error::__toString() example <?php try { throw new Error("Some error
(No version information available, might only be in Git) Gets the stack trace as a string final public string Error::getTraceAsString ( void ) Returns the stack trace as a string. Returns: Returns the stack trace as a string. Examples: Error::getTraceAsString() example <?php function test() { throw new Error; } tr
(No version information available, might only be in Git) Gets the stack trace final public array Error::getTrace ( void ) Returns the stack trace. Returns: Returns the stack trace as an array. Examples: Error::getTrace() example <?php function test() { throw new Error; } try { test(); } catch(Error $e) { var_dump($
(No version information available, might only be in Git) Gets the line in which the error occurred final public int Error::getLine ( void ) Get line number where the error occurred. Returns: Returns the line number where the error occurred. Examples: Error::getLine() example <?php try { throw new Error("Some error
Page 916 of 930