php . extension_loaded

 

(PHP 4, PHP 5, PHP 7)

extension_loaded -  Check whether an extension is loaded

 

If the  name specified extension is loaded, returns TRUE, otherwise it returns  FALSE.

#. 1 example  extension_loaded () Examples

<?php
if (!extension_loaded('gd')) {
    if (!dl('gd.so')) {
        exit;
    }
}
?>

 

 

reference:

https://www.php.net/manual/zh/function.extension-loaded.php

 

 

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11294872.html