Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the use of the get_loaded_extensions () function in PHP

Shulou Source: shulou.com Published: 2022-05-31 13:47:41 10月04日 Update

This article mainly introduces the use of the get_loaded_extensions () function in PHP, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

Get_loaded_extensions ()

This function returns a list of all loaded extension modules.

Print_r (get_loaded_extensions ()); / / php-m

/ / Array

/ / (

/ / [0] = > Core

/ / [1] = > phpdbg_webhelper

/ / [2] = > date

/ / [3] = > libxml

/ / [4] = > openssl

/ / [5] = > pcre

/ / [6] = > sqlite3

/ /.

/ / [65] = > imagick

/ / [66] = > swoole

/ / [67] = > vld

/ / [68] = > Zend OPcache

/ /)

Does this function work the same way we use-m on the command line to see which extensions have been installed on the current system? Yes, they are the same functionality, and they all return a list of such extension installations. In some open source cms systems, you can use this function to detect when you need to check whether the current installation environment meets the requirements.

Thank you for reading this article carefully. I hope the article "what is the use of the get_loaded_extensions () function in PHP" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Function article system same value function interest function at the same time command that is situation more friends module environment knowledge editing industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Microsoft Huawei NVidia Xiaomi