时间:2021-07-01 10:21:17 帮助过:3人阅读
输出a,证明第二次赋值没成功。
$_SESSION['BACKDOOR']['name'] = 'a';
$_SESSION['BACKDOOR']['name'] = array('a' => 'no', 'b' => 'yes'); //Notice: Array to string conversion
print_r($_SESSION['BACKDOOR']['name']); //还是
$_SESSION['BACKDOOR']['name'] = 'a';
$_SESSION['BACKDOOR']['name'] = array('a' => 'no', 'b' => 'yes');
print_r($_SESSION['BACKDOOR']['name']);
Array没有问题!
(
[a] => no
[b] => yes
)