Home > php教程 > php手册 > php中一个诡异bug

php中一个诡异bug

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:46:33
Original
1017 people have browsed it

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

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

 

请问这一句怎么样?www.2cto.com

有人可能会说NULL并且NOTICE undefined index "test"

一开始我也这样以为,但是实际上并不是这样,NULL是会输出,但是NOTICE并没有产生,这实在是一个坑爹的实现呀

摘自 无心云

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template