PHP低级错误:Function name must be a string

WBOY
Release: 2016-06-23 13:15:31
Original
2660 people have browsed it

PHP低级错误:Function name must be a string技术

maybe yes 发表于2015-04-16 00:19

印象中,对 PHP 的这种错误很少遇到,可是一旦遇到,一下子还找不出问题所在。

当一个人在开发的过程中很疲惫的时候,低级错误犯了,眼睛看着屏幕,不知所以然,于是全网寻找答案。下面的代码会出现 PHP Error:Function name must be a string。

<?php$_GET('name');$_POST('name');$_COOKIE('name');?>
Copy after login

函数名方法名必须是一个字符串,这样的报错提示很容易给人误导,PHP 5.3 开始支持匿名函数,变量一样可以当作函数来使用。

阅(402)评(0)查看评论


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template