PHP_UnloadFunctions
PHP_UnloadFunctions{( packageName )}
Description
Allows you to unload custom plug-in functions.
Parameters
packageName
(optional)
The name of the package to unload. Use this parameter when you want to unload a specific package instead of unloading all functions.
Return
Returns the list of functions that were unloaded.
Note that the return will be empty if there are no functions loaded or the named package is not loaded.
Errors
There are no errors for this function.
Example 1 - Unload all functions
PHP_UnloadFunctions /* Returns: Encryption Encr_Decrypt ( password ; text ) Encr_Encrypt ( password ; text ) Encr_Version {( option )} Example Exmpl_Echo ( text ) Exmpl_Echo2 ( text1 {; text2 } ) Exmpl_GetPackageVariable Exmpl_Version {( option )} */
Example 2 - Unload a specific package
PHP_UnloadFunctions ( "Encryption" ) /* Returns: Encryption Encr_Decrypt ( password ; text ) Encr_Encrypt ( password ; text ) Encr_Version {( option )} */
Change Log
Version | Description |
---|---|
3.0.0 | Function now returns the package name followed by an indented list of the functions that were unloaded. |
3.0.0 | packageName parameter was added to allow a specific package to be unloaded instead of all packages. |