【发布时间】:2009-11-27 16:55:49
【问题描述】:
我有这个代码
$return = $ep->$method($params);
if ($return === null) {
throw new Exception('Endpoint has no return value');
}
return $return;
有什么方法可以区分返回null的方法和什么都不返回的方法?
【问题讨论】:
-
这不工作
if ($return === "") {}吗?
标签: php return-value