Open In App

How to see the extensions loaded by PHP ?

Last Updated : 11 Oct, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
To see all the extensions loaded by PHP, firstly we must be sure that PHP is successfully installed in our system. After that, we can use any of the following approaches to see the loaded extension list. Approach 1: In this approach, we will use command line to check all the loaded PHP extensions. Open Terminal or Command Line Interface and type the following command and hit enter.
php -m
It will display the list of all the loaded PHP extensions. PHP_Ext_A1_output Approach 2: This approach uses get_loaded_extensions() function to display the list of all the loaded PHP extensions. Example: php
<?php 
print_r(get_loaded_extensions());
?> 
Output: PHP_EXT_AP2 Note: Please note that the list of the extension might vary from system to system.

Next Article

Similar Reads