PHP get_loaded_extensions() Function Last Updated : 09 Mar, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report The get_loaded_extensions() is an inbuilt function that returns an array of loaded and compiled modules in PHP. Syntax: get_loaded_extensions(bool $zend_extensions = false): Parameters: This function has only one parameter. $zend_extensions: It only returns zend extensions, if not then regular extensions, like MySQLi are listed. It defaults to "false" (return regular extensions). Return Values: This function returns an associative array of all loaded functions with an index. Example 1: The following code snippet demonstrates the get_loaded_extensions() function. PHP <?php print_r(get_loaded_extensions()); ?> Output: Array( [0] => Core [1] => date [2] => libxml [3] => openssl [4] => pcre [5] => zlib [6] => filter [7] => hash [8] => json [9] => pcntl [10] => Reflection [11] => SPL [12] => session [13] => standard [14] => sodium [15] => mysqlnd [16] => PDO [17] => calendar [18] => ctype [19] => exif [20] => FFI [21] => fileinfo [22] => ftp [23] => gettext [24] => iconv [25] => mysqli [26] => pdo_mysql [27] => Phar [28] => posix [29] => readline [30] => shmop [31] => sockets [32] => sysvmsg [33] => sysvsem [34] => sysvshm [35] => tokenizer [36] => Zend OPcache) Example 2: The following code snippet demonstrates the get_loaded_extensions() function. PHP <?php print_r(get_loaded_extensions(true)); ?> Output: Array ( [0] => Zend OPcache ) Reference: https://www.php.net/manual/en/function.get-loaded-extensions.php Comment More infoAdvertise with us Next Article PHP get_defined_functions() Function N neeraj3304 Follow Improve Article Tags : PHP PHP-function Similar Reads PHP get_included_files() Function The get_included_files() is an inbuilt function that returns an array with names of included or required files. Syntax: get_included_files(): array Parameters: This function does not accept any parameters. Return Values: It returns an array of the names of files. Example 1:Â This example demonstrate 1 min read PHP ob_get_contents() Function The ob_get_contents() is an inbuilt function in PHP that is used to capture what is currently being buffered by the output buffer. This function returns the output buffer. Syntaxob_get_contents(): string | falseParameter This function does not accept any parameters. Return Value The ob_get_contents( 2 min read PHP image_type_to_extension() Function The image_type_to_extension() function is an inbuilt function in PHP which is used to get the file extension for an image type. This function can be found in any PHP version similar or greater than 5.2.0. Syntax: string image_type_to_extension( int $imagetype, bool $include_dot ) Parameters: This fu 1 min read PHP | exif_imagetype() function The exif_imagetype() function is an inbuilt function in PHP which is used to determine the type of an image.Syntax:Â Â int exif_imagetype( string $filename ) Parameters:This function accepts a single parameter $filename which holds the name or URL of the image.Return Value: This function returns an i 1 min read PHP get_defined_functions() Function The get_defined_functions() function is an inbuilt function in PHP which returns the all defined functions in the array format. Syntax: array get_defined_functions( bool $exclude_disabled = true )Parameters: This function accepts one parameter that is described below: $exclude_disabled: It will chec 2 min read PHP get_browser() Function In this article, we will know to check whether the user's browser capability using the get_browser() function in PHP, along with understanding its implementation through the example. The get_browser() function in PHP is an inbuilt function that is used to tell the user about the browser's capabiliti 3 min read Like