我有以下代码可以获取所有新闻:
private function get_news()
{
$news = array();
$query = $this->database->query("SELECT * FROM `news` ORDER BY `news_id` DESC");
while($row = mysql_fetch_array($query))
{
$news[] = $row;
}
return $news;
}
在同一个班级我有一个bbedit()
功能。我想获取$news
[ int ]的值['news_content']
并将其传递给该函数bbedit()
。