这句话是什么意思呢?

WBOY
Release: 2016-06-20 12:37:38
Original
1022 people have browsed it

为什么['lx']后面还跟着一个['email']啊  这样用对吗  是什么意思呢?
$_SESSION['lx']['email']="111@111.com"; 


回复讨论(解决方案)

不知道二维数组吗?

二维数组

<?php$arr = array(  'xl' => array(    'email' => '111@111.com'  ));echo $arr['xl']['email'];?>
Copy after login

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