php echo the result while iterating through the loop

后端 未结 2 986
没有蜡笔的小新
没有蜡笔的小新 2021-01-24 22:40

I am execution loop and inside loop there is data processing function inside loop.

  for($i = 0 ; $i <=680 ; $i = $i + 40)
    {
          $url = \'http://www         


        
2条回答
  •  无人及你
    2021-01-24 22:59

    If you are executing PHP through a web-page, this would be the behaviour.

    PHP is a server side language and all code will be executed before displaying the output to the client. (using a browser)

    If you want to display the result within the loop, better use console / cmd (command line)

    Here is something that will help you use PHP with commandline.

提交回复
热议问题