php method to check whether an extension is installed: first enter the command line; then execute the command "php -m" to check whether an extension is installed. If it is installed, the matching results will be listed.
The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer
How to check if the extension is installed with php?
The fastest way to check whether an extension is installed is through the command line
php -m
Check whether the ampq extension is installed. If it is installed, matching results will be listed
php -m | grep 'amqp'
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to check if the extension is installed in php. For more information, please follow other related articles on the PHP Chinese website!