どのように最奥の配列にアクセスできますか?グレードは私に通告を与えている:文字列への変換アレイを/scripts/array.phpにライン34 グレード:PHP多次元混合配列
$data = array();
$data[0] = 78;
$data[1] = 34;
$data[2] = 87;
$student = array(0 => array(
"Stdno" => "212",
"name" => "Lorem Ipsum",
"subject" => "Networking",
"grade" => $data
),
1 => array(
"Stdno" => "212",
"name" => "Jimmy Shu",
"subject" => "Informatics",
"grade" => $data
),
2 => array(
"Stdno" => "212",
"name" => "Amet Dolor",
"subject" => "Discrete Combinatorics",
"grade" => $data
)
);
foreach ($student as $key => $value) {
foreach ($value as $key => $value) {
echo "<b>{$key}</b>: {$value}";
echo "<br />";
}
echo "<br />";
}
グレードは文字列ではありません –
あなたは何を相手にしたいですか?あなたは学年が必要ですか? – rahulsm
@rahul_mはい私はグレード –