php中我想要把二维数组中的某一个键名取出来该怎么办
Array([0]=>stdClassObject([id]=>98[news_title]=>eee[news_time]=>2013-05-2208:55:09[na...
Array
(
[0] => stdClass Object
(
[id] => 98
[news_title] => eee
[news_time] => 2013-05-22 08:55:09
[name] => 网页设计
)
[1] => stdClass Object
(
[id] => 97
[news_title] =>
[news_time] => 2013-05-21 16:53:52
[name] => 网页设计
)
[2] => stdClass Object
(
[id] => 96
[news_title] => 222
[news_time] => 2013-05-21 15:24:12
[name] => 网页设计
)
[3] => stdClass Object
(
[id] => 95
[news_title] => qwerq
[news_time] => 2013-05-19 15:37:26
[name] => 网页设计
)
)
比如我要把每一个news_title取出来,放到一个数组里 展开
(
[0] => stdClass Object
(
[id] => 98
[news_title] => eee
[news_time] => 2013-05-22 08:55:09
[name] => 网页设计
)
[1] => stdClass Object
(
[id] => 97
[news_title] =>
[news_time] => 2013-05-21 16:53:52
[name] => 网页设计
)
[2] => stdClass Object
(
[id] => 96
[news_title] => 222
[news_time] => 2013-05-21 15:24:12
[name] => 网页设计
)
[3] => stdClass Object
(
[id] => 95
[news_title] => qwerq
[news_time] => 2013-05-19 15:37:26
[name] => 网页设计
)
)
比如我要把每一个news_title取出来,放到一个数组里 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询