PHP Modules Tutorials - Herong's Tutorial Examples - v5.19, by Herong Yang
get_extension_funcs() - Get Module Functions
This section provides a tutorial example on how to get a list of all functions provided a given module using the get_extension_funcs() function.
To get a list of all functions provided a given module, you can call the get_extension_funcs() function as shown in the following example:
<?php # get-extension-funcs.php # Copyright 2009-2026 (c) HerongYang.com. All Rights Reserved. $module = $argv[1]; $list = get_extension_funcs($module); var_dump($list); ?>
Then you can run the script with a module name to display its functions:
herong$ php get-extension-funcs.php json
array(4) {
[0]=>
string(11) "json_encode"
[1]=>
string(11) "json_decode"
[2]=>
string(15) "json_last_error"
[3]=>
string(19) "json_last_error_msg"
}
Table of Contents
Introduction and Installation of PHP
Managing PHP Environment and Modules on macOS
Managing PHP Environment and Modules on CentOS
Manage Runtime Configuration Directives
"php -i" - Display Configuration Information
php.ini - Configuration Directive File
Additional .ini Configuration Files
extension_dir - Module Library Location
"php -m" - Display Loaded Modules
►get_extension_funcs() - Get Module Functions
dl() - Load Module Dynamically
DOM Module - Parsing HTML Documents
GD Module - Manipulating Images and Pictures
MySQLi Module - Accessing MySQL Server
OpenSSL Module - Cryptography and SSL/TLS Toolkit
PCRE Module - Perl Compatible Regular Expressions
SOAP Module - Creating and Calling Web Services
SOAP Module - Server Functions and Examples