PHP中的多维数组 代码显示错误了
$families=Array([Griffin]=>Array([0]=>Peter[1]=>Lois[2]=>Megan)[Quagmire]=>Array([0]=...
$families = Array
(
[Griffin] => Array
(
[0] => Peter
[1] => Lois
[2] => Megan
)
[Quagmire] => Array
(
[0] => Glenn
)
[Brown] => Array
(
[0] => Cleveland
[1] => Loretta
[2] => Junior
)
)
里面那里错了
echo "Is " . $families['Griffin'][2] .
" a part of the Griffin family?"; 展开
(
[Griffin] => Array
(
[0] => Peter
[1] => Lois
[2] => Megan
)
[Quagmire] => Array
(
[0] => Glenn
)
[Brown] => Array
(
[0] => Cleveland
[1] => Loretta
[2] => Junior
)
)
里面那里错了
echo "Is " . $families['Griffin'][2] .
" a part of the Griffin family?"; 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询