V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
huafang
V2EX  ›  PHP

求助,下面代码,提示Oops, try again! It looks like your loop didn't echo 'the 10... '.

  •  
  •   huafang · 2013-05-23 20:47:49 +08:00 · 3166 次点击
    这是一个创建于 3983 天前的主题,其中的信息可能已经有所发展或是发生改变。
    <?php
    $yardlines = array("The 50... ", "the 40... ",
    "the 30... ", "the 20... ", "the 10... ");
    // Write your foreach loop below this line

    foreach($yardlines as $item){
    // Write your foreach loop above this line
    echo $item;

    }
    ?>
    4 条回复    1970-01-01 08:00:00 +08:00
    skydiver
        1
    skydiver  
       2013-05-23 20:51:41 +08:00
    // Write your foreach loop above this line

    这不是写了让你把循环写到上面嘛。。
    vibbow
        2
    vibbow  
       2013-05-23 20:52:14 +08:00
    表示本地运行没完呢提
    vibbow
        3
    vibbow  
       2013-05-23 20:52:27 +08:00
    表示本地运行没问题
    C:\Users\1\Desktop>php test.php
    The 50... the 40... the 30... the 20... the 10...
    huafang
        4
    huafang  
    OP
       2013-05-23 21:16:29 +08:00
    @vibbow 我也觉得很诡异
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1054 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:12 · PVG 03:12 · LAX 12:12 · JFK 15:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.