guopu
V2EX  ›  PHP

很奇怪的一个问题,求解决

  •  
  •   guopu · May 5, 2012 · 3201 views
    This topic created in 5119 days ago, the information mentioned may be changed or developed.
    第一种方式:
    <?php
    $t='';
    for ($i=0;$i<1000;$i++){ $t.='s'; }
    ?>

    第二种方式:
    <?php for ($i=0;$i<1000;$i++){
    ?>
    s
    <?php
    }
    ?>
    在iis下,第二种方式的执行时间明显大于第一种,为什么?在apche下两种执行时间是一样的
    为什么在iis下循环输出执行效率那么低?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3363 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 13:53 · PVG 21:53 · LAX 06:53 · JFK 09:53
    ♥ Do have faith in what you're doing.