PHP_GetLastError{( selector )}
Description
Allows you to check for plug-in errors.
See fm_set_error for information about returning your own custom errors.
Parameters
selector
(optional)
Pass in 1 to return the error number or 2 to return the error description, otherwise both will be returned.
Return
Returns the last error.
Errors
There are no errors for this function.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
PHP_GetLastError /* Returns: 100 Plug-in is not registered */ |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
PHP_GetLastError ( 1 ) /* Returns: 100 */ |