Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

get_loaded_extensions(3) [php man page]

GET_LOADED_EXTENSIONS(3)						 1						  GET_LOADED_EXTENSIONS(3)

get_loaded_extensions - Returns an array with the names of all modules compiled and loaded

SYNOPSIS
array get_loaded_extensions ([bool $zend_extensions = false]) DESCRIPTION
This function returns the names of all the modules compiled and loaded in the PHP interpreter. PARAMETERS
o $zend_extensions - Only return Zend extensions, if not then regular extensions, like mysqli are listed. Defaults to FALSE (return regular exten- sions). RETURN VALUES
Returns an indexed array of all the modules names. CHANGELOG
+--------+---------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------------+ | 5.2.4 | | | | | | | The optional $zend_extensions parameter was | | | added | | | | +--------+---------------------------------------------------+ EXAMPLES
Example #1 get_loaded_extensions(3) Example <?php print_r(get_loaded_extensions()); ?> The above example will output something similar to: Array ( [0] => xml [1] => wddx [2] => standard [3] => session [4] => posix [5] => pgsql [6] => pcre [7] => gd [8] => ftp [9] => db [10] => calendar [11] => bcmath ) SEE ALSO
get_extension_funcs(3), extension_loaded(3), dl(3), phpinfo(3). PHP Documentation Group GET_LOADED_EXTENSIONS(3)

Check Out this Related Man Page

GET_EXTENSION_FUNCS(3)							 1						    GET_EXTENSION_FUNCS(3)

get_extension_funcs - Returns an array with the names of the functions of a module

SYNOPSIS
array get_extension_funcs (string $module_name) DESCRIPTION
This function returns the names of all the functions defined in the module indicated by $module_name. PARAMETERS
o $module_name - The module name. Note This parameter must be in lowercase. RETURN VALUES
Returns an array with all the functions, or FALSE if $module_name is not a valid extension. EXAMPLES
Example #1 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 ) SEE ALSO
get_loaded_extensions(3), ReflectionExtension::getFunctions. PHP Documentation Group GET_EXTENSION_FUNCS(3)
Man Page

We Also Found This Discussion For You

1. Programming

Creating an array to hold posix thread ids: Only dynamic array works

I am facing a strange error while creating posix threads: Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output. Snippet 1 This works: -------------- int *threadids; threadids = (int *) malloc (num_threads * sizeof(int)); ... (4 Replies)
Discussion started by: kmehta
4 Replies