extension_loaded
extension_loaded
Find out whether an extension is loaded
bool **extension_loaded** string $extension
Finds out whether the extension is loaded.
extensionThe extension name. This parameter is case-insensitive.
You can see the names of various extensions by using
or if you're using the
or version of
PHP you can use the switch to
list all available extensions:
`phpinfo``CGI``CLI````php
$ php -m [PHP Modules] xml tokenizer standard sockets session posix pcre overload mysql mbstring ctype
[Zend Modules]
Returns true if the extension identified by
is loaded, false otherwise.
`extension`
**Voorbeeld: example**
```php
<?php
if (!extension_loaded('gd')) {
if (!dl('gd.so')) {
exit;
}
}
?>
get_loaded_extensions``get_extension_funcs``phpinfo``dl``function_exists