企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
# phpRedis php扩展的检测: ``` <pre class="calibre17">``` $modules<span class="token1">=</span><span class="token4">get_loaded_extensions</span><span class="token3">(</span><span class="token3">)</span><span class="token3">;</span> <span class="token">//返回所有编译并加载模块名</span> get_extension_funcs <span class="token3">(</span> $modules<span class="token3">[</span><span class="token2">'module_name'</span><span class="token3">]</span><span class="token3">)</span><span class="token">// 返回模块函数名称的数组</span> <span class="token4">extension_loaded</span><span class="token3">(</span>$module_name<span class="token3">)</span><span class="token">//检查一个扩展是否已经加载</span> <span class="token4">function_exists</span><span class="token3">(</span><span class="token3">)</span> <span class="token">//检查某个函数是否存在</span> ``` ```