PHP – endforeach Keyword
The PHP endforeach keyword is used to close the code block of a foreach loop which was started using the foreach syntax.
The PHP endforeach keyword is used to close the code block of a foreach loop which was started using the foreach syntax.
The PHP endif keyword is used to mark the end of an if conditional which was started with the if, or elseif syntax.
The PHP endswitch keyword is used to mark the end of a switch conditional which was started with the switch syntax.
The PHP error_get_last() function returns the last error that occurred (as an associative array).
The PHP error_log() function sends an error message to a log, to a file, or to a mail account.
The PHP error_reporting() function specifies which errors are reported.
The PHP eval() function evaluates a string as PHP code (must be valid PHP code, not contain a return statement, and must end with semicolon).
The PHP Exception() constructor is used to create an Exception object and set some of its properties.
The PHP getCode() method returns an integer which can be used to identify the exception.
The PHP getFile() method returns the absolute path to the file where an exception occurred.
The PHP getLine() method returns the line number of the line of code which threw the exception.
The PHP getMessage() method returns a description of the error or behaviour that caused the exception to be thrown.
The PHP getPrevious() method returns the previous exception when an exception is triggered by a previous exception. Otherwise it returns null.
The PHP getTrace() method returns a stack trace (information about the functions that are running at a given moment) in the form of an array.
The PHP getTraceAsString() method returns a stack trace (information about the functions that are running at a given moment) in the form of an string.
The PHP extends keyword is used to derive a class from another class, and therefore inherits all the properties of the class that it is derived from.
The PHP extract() function uses array keys as variable names and values as variable values to import variables into the local symbol table from an array.