public function extension_loaded($name)
    {
        $code = new Code();
        $code->addStatement(sprintf(
            "return extension_loaded(%s);",
            var_export($name, true)
        ));

        return $this->adapter->run($code);
    }
public function extension_loaded($name)
    {
        $code = new Code();
        $code->addStatement(sprintf(
            "return extension_loaded(%s);",
            var_export($name, true)
        ));

        return $this->adapter->run($code);
    }
public function extension_loaded ( $ name ) { $ code = new Code ( ) ; $ code -> addStatement ( sprintf ( "return extension_loaded(%s);" , var_export ( $ name , true ) ) ) ; return $ this -> adapter -> run ( $ code ) ; }
Find out whether an extension is loaded

@param  string $name The extension name. This parameter is case-insensitive
@return boolean      Returns TRUE if the extension identified by name is loaded, FALSE otherwise
Find out whether an extension is loaded