get_loaded_extensions

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns an array with the names of all modules compiled and loaded
<?php get_loaded_extensions(bool $zend_extensions = false): array
<?php if ($_GET['extensions'] ?? false) {

    header('Content-Type: application/json');

    echo json_encode(get_loaded_extensions(), JSON_PRETTY_PRINT);

    return;

}
<?php return function (array $event) {

    if ($event['extensions'] ?? false) {

        return get_loaded_extensions();

    }



    if ($event['php-config'] ?? false) {
<?php if ($_GET['extensions'] ?? false) {

    header('Content-Type: application/json');

    echo json_encode(get_loaded_extensions(), JSON_PRETTY_PRINT);

    return;

}