Home >Backend Development >PHP Tutorial >PHP function extension_loaded() usage example_PHP tutorial
This article mainly introduces the usage of PHP function extension_loaded(). The example analyzes the function extension_loaded() to check whether an extension has been loaded. Usage, and additional instructions on how to check the loaded php extensions on this machine. Friends in need can refer to it
The example in this article describes the usage of PHP function extension_loaded(). Share it with everyone for your reference. The specific analysis is as follows:
extension_loaded — Check if an extension is loaded
For example:
The code is as follows:
Supplement:
How to check the enabled extension of PHP:
Command line cmd interface:
Input: php -m
The results are displayed as follows:
Copy the code The code is as follows:
[Zend Modules]
I hope this article will be helpful to everyone’s PHP programming design.