对你来说可能很简单,但我有以下数组,其中包含数据库中的所有类别:
Array
(
[0] => Array
(
[id] => 1
[title] => Fitness News
[description] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tincidunt tempor nunc, sit amet facilisis metus molestie nec. Nulla varius justo et felis euismod bibendum. Vestibulum suscipit tempus viverra. Mauris eros lorem, posuere eget mattis et, euismod id metus. In ac dignissim ligula. fdsfdsfdsfds fdsf fsd
[image1] => test
[image1_title] => test
[created] => 2012-03-26
)
[1] => Array
(
[id] => 2
[title] => Recommended Products
[description] => Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tincidunt tempor nunc, sit amet facilisis metus molestie nec. Nulla varius justo et felis euismod bibendum. Vestibulum suscipit tempus viverra. Mauris eros lorem, posuere eget mattis et, euismod id metus. In ac dignissim ligula.gdsfdsfdsfdsfds
[image1] => H
[image1_title] => H
[created] => 2012-03-25
)
[2] => Array
(
[id] => 3
[title] => New Category
[description] => This is a new category
[image1] =>
[image1_title] =>
[created] => 2012-03-13
)
)
现在我拥有的基本上是一个类别 ID,但我想从上面的数组中获取类别标题。