Can’t use function return value in write context解决方法
2015-01-12 17:12
453 查看
Can’t use function return value in write context 意思是不能使用函数返回值作为输入参数,遇到这种问题一般有两种情况.
1.两个函数嵌套,其中外层的函数不能使用内嵌的函数的返回值
如:
需要将内嵌的函数提取出来:
2.代码书写有误,需要把括号之类的符号补全或者完善.
1.两个函数嵌套,其中外层的函数不能使用内嵌的函数的返回值
如:
<?php if (!empty(trim($name))) { //code }
需要将内嵌的函数提取出来:
<?php $name = trim($name); if (!empty($name)) { //code }
2.代码书写有误,需要把括号之类的符号补全或者完善.
<?php $_GET("num1"); // 需要修改为$_GET['num1']
相关文章推荐
- Fatal error: Can't use function return value in write context in ……
- Fatal error: Can't use function return value in write context
- PHP使用empty检查函数返回结果时报Fatal error: Can't use function return value in write context的问题
- 【转载】PHP使用empty检查函数返回结果时报Fatal error: Can't use function return value in write context的问题
- 处理【Fatal error: Can't use function return value in write context 】的情况之《empty的解析》
- Fatal error: Can't use function return value in write context in
- php--Can't use function return value in write context
- php版本问题 Can't use function return value in write context
- PHP 错误 Can’t use function return value in write context
- PHP错误Can't use method return value in write context
- "Can't use method return value in write context"错误提示
- php出现错误Can't use function return value in write
- Can't use function return value in write contex
- PHP报错:遇到Can't use method return value in write context
- php调用存储过程返回结果集,解决can't return a result set in the given context错误的方法
- svn: Server sent unexpected return value (403 Forbidden) in response to CHECKOUT request for-解决方法
- Deprecated: Assigning the return value of new by reference is deprecated in……解决方法
- php调用存储过程返回结果集,解决can't return a result set in the given context错误的方法
- Server sent unexpected return value (403 Forbidden) in response to OPTIONS解决方法
- php5.3 中显示Deprecated: Assigning the return value of new by reference is deprecated in 的解决方法