Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : PHP Options&Information : get_extension_funcs

get_extension_funcs

Returns an array with the names of the functions of a module (PHP 4, PHP 5)
array get_extension_funcs ( string module_name )

Example 1835. Prints the XML functions

<?php
print_r
(get_extension_funcs("xml"));
?>

The above example will output something similar to:

Array
(
   [0] => xml_parser_create
   [1] => xml_parser_create_ns
   [2] => xml_set_object
   [3] => xml_set_element_handler
   [4] => xml_set_character_data_handler
   [5] => xml_set_processing_instruction_handler
   [6] => xml_set_default_handler
   [7] => xml_set_unparsed_entity_decl_handler
   [8] => xml_set_notation_decl_handler
   [9] => xml_set_external_entity_ref_handler
   [10] => xml_set_start_namespace_decl_handler
   [11] => xml_set_end_namespace_decl_handler
   [12] => xml_parse
   [13] => xml_parse_into_struct
   [14] => xml_get_error_code
   [15] => xml_error_string
   [16] => xml_get_current_line_number
   [17] => xml_get_current_column_number
   [18] => xml_get_current_byte_index
   [19] => xml_parser_free
   [20] => xml_parser_set_option
   [21] => xml_parser_get_option
   [22] => utf8_encode
   [23] => utf8_decode
)

Code Examples / Notes » get_extension_funcs

craquepipe

This snippet will show all of your installed extensions:
<pre>
<?php
$Extensions = get_loaded_extensions();
foreach($Extensions as $Extension) {
 echo("<hr><h2>$Extension</h2>");
 print_r(get_extension_funcs($Extension));
}
?>


jm

FALSE is returned if there are no functions in that extension.  For example, <?php get_extension_funcs("xmlreader"); ?> returns FALSE because that extension defines the XMLReader class but not functions.

Change Language


Follow Navioo On Twitter
assert_options
assert
dl
extension_loaded
get_cfg_var
get_current_user
get_defined_constants
get_extension_funcs
get_include_path
get_included_files
get_loaded_extensions
get_magic_quotes_gpc
get_magic_quotes_runtime
get_required_files
getenv
getlastmod
getmygid
getmyinode
getmypid
getmyuid
getopt
getrusage
ini_alter
ini_get_all
ini_get
ini_restore
ini_set
main
memory_get_peak_usage
memory_get_usage
php_ini_scanned_files
php_logo_guid
php_sapi_name
php_uname
phpcredits
phpinfo
phpversion
putenv
restore_include_path
set_include_path
set_magic_quotes_runtime
set_time_limit
sys_get_temp_dir
version_compare
zend_logo_guid
zend_thread_id
zend_version
eXTReMe Tracker