How to Solve PHP Error: Function name must be a string

 

PHP low level error: function name must be a string technology

In my impression, this kind of PHP error is rarely encountered, but once encountered, all of a sudden still can not find the problem

When a person is very tired in the process of development, he makes a low-level mistake. He looks at the screen and doesn’t know why, so the whole network looks for the answer. PHP error: function name must be a string appears in the following code

<?php

$_GET('name');

$_POST('name');

$_COOKIE('name');

?>

Function name and method name must be a string, which is easy to mislead people. PHP 5.3 has started to support anonymous functions, and variables can also be used as functions

 

Similar Posts: