我有这个代码json代码
[{"title":"Title 1","option":"Option 1"},{"title":"title 2","option":"Option 2"}]
我用它来显示它
foreach ($query->getResult() as $row) {
foreach (json_decode($row->keywords) as $msg) {
echo $msg->title . "<br/>" . $msg->option . "<hr/>";
}
}
我怎样才能随机显示这个?
德玛西亚99