get_loaded_extensions

PHP 4, PHP 5, PHP 7, PHP 8
get_loaded_extensions - Returns an array with the names of all modules compiled and loaded
Manual
Code Examples

get_loaded_extensions( [bool$zend_extensions = false] ): array

This function returns the names of all the modules compiled and loaded in the PHP interpreter.

Parameters

zend_extensions

Only return Zend extensions, if not then regular extensions, like mysqli are listed. Defaults to false (return regular extensions).

Return Values

Returns an indexed array of all the modules names.

Related Functions

Example of get_loaded_extensions

Show all examples for get_loaded_extensions

PHP Version: