一段时间以来,我一直在努力寻找解决此问题的方法。我正在将网站从 php 转换为 asp。我有一个这样的数组。
$students = array(
array(
"id" => "1",
"name" => "John",
"group" => "A"
),
array(
"id" => "2",
"name" => "Joe",
"group" => "A"
),
array(
"id" => "3",
"name" => "Derp",
"group" => "B"
),
);
foreach($student as $slacker){
//use the data
}
是否有任何替代方法可以与 asp 接近?