小编use*_*454的帖子

解析错误:语法错误,第13行的意外文件结束

我为我的代码保持错误" 解析错误:语法错误,第13行的文件意外结束 "...如下所示

<?php

    $all= get_posts(array('post_type' => 'books', 'numberposts' => -1,));

    foreach ( $all as $post ) :  setup_postdata($post);

        if (!empty($post))
        {
        $postid=$post->ID;
        echo $postid;
        }

    ?>
Run Code Online (Sandbox Code Playgroud)

php syntax-error

-2
推荐指数
1
解决办法
169
查看次数

标签 统计

php ×1

syntax-error ×1