Blogger Information
Blog 32
fans 0
comment 0
visits 23733
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php代码嵌入-2019年6月3日20:00分
小李广花荣
Original
632 people have browsed it
  1. 下面将展示代码及效果图  


  2. 实例

    <?php
    
    $header="国产影剧";
    $movies=['倚天屠龙记','在一起','如果可以这样爱'];
    
    
    
    ?>
    
    
    <!doctype html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="keywords" content="">
        <meta name="description" content="">
        <title><?php echo $header?></title>
    </head>
    <body>
    <ol>
    <?php  foreach ( $movies as $movie):?>
        <li><a href=""><?php echo $movie;?></a></li>
        <?php endforeach;?>
    </ol>
    </body>
    </html>

    运行实例 »

    点击 "运行实例" 按钮查看在线实例

    QQ图片20190703175843.png
Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!