我不知道如何比较数组索引。我知道这必须很简单。
$list_array array (
'first' => array('one' => 1, 'two' => 2),
'second' => array('one' => 3, 'two' => 4)
);
foreach ($list_array as $key) {
if(<the-list_array-index> == 'second' ) {
echo $key['one']. ' - '. $key['two'];
}
}
结果 3 - 4