📜  wordpresss 循环遍历对象 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:36.285000             🧑  作者: Mango

代码示例1
foreach ( $lessons as $lesson ){
    if( $lesson['status'] == 'completed' ){
        echo $lesson['post']->post_title;
    }
}