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

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

WBOY
Release: 2016-06-13 09:59:57
Original
916 people have browsed it

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

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


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

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

这么看你就不会疑惑了

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