PHP を使用して SQL クエリから日付を取得していますが、この単純な配列に基づいて各年とその月を表示する方法がわかりません。
配列
(
[0] => stdClass オブジェクト
(
[月名(wp_posts.post_date)] => 7月
[年(wp_posts.post_date)] => 2012
)
[1] => stdClass オブジェクト
(
[月名(wp_posts.post_date)] => 6月
[年(wp_posts.post_date)] => 2012
)
[2] => stdClass オブジェクト
(
[月名(wp_posts.post_date)] => 5月
[年(wp_posts.post_date)] => 2011
)
)
私が表示したいのはこれです:
2012年 - 7月 - 六月 2011年 - 5月