$results = []

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:51:38
Original
1105 people have browsed it

$results = [];

foreach (array_merge([$class => $class], class_parents($class)) as $class)
{
$results += trait_uses_recursive($class);
}

return array_unique($results);


$a=[]; 这是什么意思?


回复讨论(解决方案)

是个数组的意思。

$a = [];
是 $a = array(); 的简化写法,php5.4开始可用

就是 $a = array();的意思。

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
No results
From 1970-01-01 08:00:00
0
0
0
Execution without any results
From 1970-01-01 08:00:00
0
0
0
Can't display running results
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