huafang
V2EX  ›  PHP

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

  •  
  •   huafang · May 23, 2013 · 3930 views
    This topic created in 4804 days ago, the information mentioned may be changed or developed.
    <?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 replies    1970-01-01 08:00:00 +08:00
    skydiver
        1
    skydiver  
       May 23, 2013
    // Write your foreach loop above this line

    这不是写了让你把循环写到上面嘛。。
    vibbow
        2
    vibbow  
       May 23, 2013
    表示本地运行没完呢提
    vibbow
        3
    vibbow  
       May 23, 2013
    表示本地运行没问题
    C:\Users\1\Desktop>php test.php
    The 50... the 40... the 30... the 20... the 10...
    huafang
        4
    huafang  
    OP
       May 23, 2013
    @vibbow 我也觉得很诡异
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   987 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:23 · PVG 03:23 · LAX 12:23 · JFK 15:23
    ♥ Do have faith in what you're doing.