PHP中的function_exists函数
来源:互联网 发布:审计软件 过程 编辑:程序博客网 时间:2024/06/08 16:03
可以用来判断php.ini文件中的参数是否开启.比如看配制文件中GD库开启了没有.
如下:
function checkGD()
{
if(false == function_exists("gd_info"))
{
echo 'GD库没有开启.';
}else{
echo 'GD库已经开启.';
}
}
checkGD();
php教程检测函数是否存在函数 function_exists
语法
bool function_exists ( string $function_name )
检查的定义的函数的列表,同时内置(内部)和用户定义的,为function_name。
- PHP中的function_exists函数
- php检测函数是否存在函数 function_exists
- function_exists.php
- PHP function_exists的一个坑
- php 中 function_exists 、 method_exists 和 is_callable
- 【PHP】function_exists , method_exists 与 is_callable的区别
- Wordpress使用"function_exists();"函数以提高主题兼容性
- PHP函数中的函数
- PHP中的时间函数
- PHP中的字符串函数
- php中的时间函数
- PHP中的empty()函数
- PHP中的字符串函数
- php中的截取函数
- PHP中的sprintf()函数
- php中的htmlspecialchars函数
- PHP中的字符串函数
- php 中的mail函数
- 如何计算IT投资回报(ROI)
- MFC Windows程序设计读书笔记第一章
- Linux 下安装Groovy
- 第一次用csdn
- AutoCAD.net:有条件选择AutoCAD实体
- PHP中的function_exists函数
- 关于.NET网站安全的方案
- normalization vs denormalization
- 一个初学者怎样才能很快学会delphi
- jQuery validate 表单验证
- 如何在ubunut下管理googlecode?
- Eclipse中的代码补全设置
- 新手
- LESSON 10 WEB SECURITY AND PRIVACY part IV