Home > Backend Development > PHP Tutorial > A strange bug in php_PHP tutorial

A strange bug in php_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 17:47:45
Original
678 people have browsed it

$data = array('server' => false);

echo $data['server']["test"];

How about this sentence? www.2cto.com

One might say NULL and NOTICE undefined index "test"

I thought so at first, but in fact it is not the case. NULL will be output, but NOTICE is not generated. This is really a cheating implementation

Excerpted from Wuxinyun

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478480.htmlTechArticle$data = array(server = false); echo $data[server][test]; What about this sentence? Sample? www.2cto.com Some people may say NULL and NOTICE undefined index test. I thought so at first,...
Related labels:
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template