Home >Backend Development >PHP Tutorial >问个菜鸟的关于数组的有关问题

问个菜鸟的关于数组的有关问题

WBOY
WBOYOriginal
2016-06-13 09:59:57909browse

问个初学者的关于数组的问题
下面这个定义数组的代码没怎么看明白

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$condition = array(    'team_type' => 'normal',    "begin_time 


第一个是给数组加一个元素 team_type 赋值normal
可第二句是什么意思啊?

------解决方案--------------------
第二句是卖眼镜的检测视力用的。
array(
team_type=>'normal',
"xxxxxx");

这么看你就不会疑惑了

0=>"begin_time
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