0

这是我的数组,使用 print_r。例如,我应该如何获得头衔?

Array ( 

        [0] => Array ( [homework_id] => 2 [title] => english0610 [due_date] => 2012-10-09 00:00:00 [description] => english [key] => 12345 [author] => tom [attachment] => [group_id] => TJ10S1 [create_date] => 2012-10-07 00:00:00 ) 
        [1] => Array ( [homework_id] => 1 [title] => math0610 [due_date] => 2012-10-08 00:00:00 [description] => math homework for today [key] => 12345 [author] => tom [attachment] => [group_id] => TJ10S1 [create_date] => 2012-10-06 00:00:00 ) 
);
4

1 回答 1

1

你可以使用foreach

echo "<pre>"  ;
foreach($list as $value)
{
    echo $value['title']  , PHP_EOL;
}
于 2012-10-10T22:44:41.703 回答