PHP – Exception getCode() Method
The PHP getCode() method returns an integer which can be used to identify the exception.
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.
The PHP ezmlm_hash() function calculates the hash value needed when keeping EZMLM mailing lists in a MySQL database.
The PHP fclose() function closes an open file pointer that was opened by fopen() or fsockopen().
The PHP feof() function checks if the “end-of-file” (EOF) has been reached for an open file.
The PHP fgetcsv() function parses a line from an open file, checking for CSV fields.
The PHP file() reads a file into an array which contains a line from the file, with the newline character still attached.