首页 > Web开发 > 详细

PHP报错: Can't use method return value in write context

时间:2015-10-08 16:19:41      阅读:141      评论:0      收藏:0      [点我收藏+]
$dp_id = $this->getParam(‘dpId‘);
if(!empty($this->getParam(‘dpId‘))) { 
$this->smarty->assign(‘developer‘, get_developers($this->getParam(‘dpId‘)));
}

以上PHP会报错: Can‘t use method return value in write context

解决办法为分开写

$dp_id = $this->getParam(‘dpId‘);
if(!empty($dp_id)) {
	$this->smarty->assign(‘developer‘, get_developers($this->getParam(‘dpId‘)));
}


PHP报错: Can't use method return value in write context

原文:http://www.cnblogs.com/meibao/p/4860975.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!