Home  >  Article  >  Backend Development  >  $results = [],该如何解决

$results = [],该如何解决

不言
不言Original
2018-05-15 15:09:031395browse

$results = []
$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();的意思。


Statement:
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