See some of these hints in the PHP error log:
[27-aug-2011 22:26:12] PHP Warning:cannot use a scalar value as an array in/www/hx/enjoy.php on line 14
[27-aug-2011 22:26:18] PHP Warning:cannot use a scalar value as an array in/www/hx/enjoy.php on
The scalar type and return type declaration are added to PHP 7. I checked the information and found that the efficiency was not greatly improved. So what is the role of this scalar type and return type declaration? The scalar type and return type
See some of these hints in the PHP error log:
[27-aug-2011 22:26:12] PHP Warning:cannot use a scalar value as an array in/www/hx/enjoy.php on line 14
[27-aug-2011 22:26:18] PHP Warning:cannot use a scalar value as an array in/www/hx/enjoy.php on
Today, when testing the PHP program, there is an error message: Cannot use a scalar value as an array, this error prompted a few days ago, it seems like a little tune a bit better, did not delve into, today but appeared again.
Can not fool, to find
Today, when testing the PHP program, there is an error message: Cannot use a scalar value as an array, this error prompted a few days ago, it seems like a little tune a bit better, did not delve into, today but appeared again.
Can not fool, to find
bool is_scalar ( mixed $var ) If the given variable parameter var is a scalar,is_scalar () returns TRUE , otherwise returns FALSE .Scalar variables are variables that contain an integer,float,string, or Boolean, while array, object,and resource
The php error log contains the following prompts:
[27-Aug-2011 22:26:12] PHP Warning: Cannot use a scalar value as an array in/www/hx/enjoy. php on line 14[27-Aug-2011 22:26:18] PHP Warning: Cannot use a scalar value as an array in/www/hx/enjoy.
The php error log contains the following prompts:[27-Aug-2011 22:26:12] PHP Warning: Cannot use a scalar value as an array in/www/hx/enjoy. php on line 14[27-Aug-2011 22:26:18] PHP Warning: Cannot use a scalar value as an array in/www/hx/enjoy. php
See the error log in PHP for some of these tips:
[27-aug-2011 22:26:12] PHP Warning:cannot use a scalar value as a array in/www/hx/enjoy.php in line 14
[27-aug-2011 22:26:18] PHP Warning:cannot use a scalar value as a array in/www/hx/enjoy.php in
1. Initialization of arrays(1) Create an array with arrayA: $products = array (' tires ', ' oil ', ' Spark plugs ');Array () is actually a language structure, not a function
B: Initializing the related array$prices = Array (' Tires ' =>100, ' oil ' =
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.