How to see the extensions loaded by PHP ?
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.

Approach 2: This approach uses get_loaded_extensions() function to display the list of all the loaded PHP extensions.
Example:
<?php print_r(get_loaded_extensions()); ?> |
Output:

Note: Please note that the list of the extension might vary from system to system.
Recommended Posts:
- What are chrome extensions?
- Check if a jquery has been loaded or not
- How to get file extensions using JavaScript?
- How to run a function when the page is loaded in JavaScript ?
- How to check a webpage is loaded inside an iframe or into the browser window using JavaScript?
- Convert a String to a Singly Linked List
- Error Handling in Perl
- Tricks in Windows 10 | Set -1
- Perl | File I/O Functions
- How to reset a form using jQuery with .reset() method?
- Deploy cloud function on Google Cloud Platform
- Bajaj Electricals Interview Experience
- Perl | Line Action Commands in a Debugger
- 8 Ways to Shipwreck Your Next Website Design
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



