CacheTool\Proxy\PhpProxy::extension_loaded PHP Method

extension_loaded() public method

Find out whether an extension is loaded
public extension_loaded ( string $name ) : boolean
$name string The extension name. This parameter is case-insensitive
return boolean Returns TRUE if the extension identified by name is loaded, FALSE otherwise
    public function extension_loaded($name)
    {
        $code = new Code();
        $code->addStatement(sprintf("return extension_loaded(%s);", var_export($name, true)));
        return $this->adapter->run($code);
    }