PHP_GetLastError


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.

 

Example 1 - Return error number and description
PHP_GetLastError
/*
Returns: 100 Plug-in is not registered
*/
Example 2 - Return error number only
PHP_GetLastError ( 1 )
/*
Returns: 100
*/