我正在运行一个循环:
$array = $_POST['d'];
foreach($array as $a){
print_r($a);
}
$array 包含数组(数组的数量不同),结果我得到了这个。我只想知道如何在循环中单独调用这些值。例如: $thing = 循环中 methv 的值
Array (
[1173627548] => Array (
[num] => 1173627548
[methv] => dont know
[q1] => -
[q2] => -
[q3] => U
[q4] => -
[comm] =>
)
)
对不起,如果我不清楚
print_r($array) 显示:
Array ( [0] => Array ( [1173627548] => Array ( [num] => 1173627548 [methv] => dont know [q1] => - [q2] => - [q3] => U [q4] => - [comm] => ) ) [1] => Array ( [1182868902] => Array ( [num] => 1182868902 [methv] => dont know [q1] => - [q2] => - [q3] => U [q4] => - [comm] => ) ) ) Array ( [0] => Array ( [1173627548] => Array ( [num] => 1173627548 [methv] => dont know [q1] => - [q2] => - [q3] => U [q4] => - [comm] => ) ) [1] => Array ( [1182868902] => Array ( [num] => 1182868902 [methv] => dont know [q1] => - [q2] => - [q3] => U [q4] => - [comm] => ) ) )
注意:我现在在这个数组中有 2 个数组