Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagephp
themeEclipse
titleExample 1 - Return both the error number the and description
PHP_GetLastError
/*
Returns: 100 Plug-in is not registered
*/
Code Block
languagephp
themeEclipse
titleExample 2 - Return error number only
PHP_GetLastError ( 1 )
/*
Returns: 100
*/