超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<is_boolis_double>
Last updated: Fri, 22 Jun 2007

is_callable

(PHP 4 >= 4.0.6, PHP 5)

is_callable --  检测参数是否为合法的可调用结构

描述

bool is_callable ( mixed var [, bool syntax_only [, string callable_name]])

警告

该函数目前尚无参考文档;仅参数列表可用。




add a note add a note User Contributed Notes
is_callable
kmckay at kmckay dot ca
06-Sep-2002 12:18
I'm using the function to determine if a posted variable is "callable". This is usefull when checking if posted variable names exist within a class.

while(list($key,$value)=each($HTTP_POST_VARS))
{
$tmpVar = 'return isset($' . 'this->' . $key . ');';
if(is_callable($key) && eval($tmpVar) && trim($value) != "")
 {
 $tmpSet = '$this->set' . ucfirst($key) . "('" . $value . "');";
   eval($tmpSet);
}
}

<is_boolis_double>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22