21,891
社区成员
发帖
与我相关
我的任务
分享
$_SESSION['BACKDOOR']['name'] = 'a';
$_SESSION['BACKDOOR']['name'] = array('a' => 'no', 'b' => 'yes'); //Notice: Array to string conversion
print_r($_SESSION['BACKDOOR']['name']); //还是输出a,证明第二次赋值没成功。
$_SESSION['BACKDOOR']['name'] = 'a';
$_SESSION['BACKDOOR']['name'] = array('a' => 'no', 'b' => 'yes');
print_r($_SESSION['BACKDOOR']['name']); Array
(
[a] => no
[b] => yes
)
没有问题!