\n vs. PHP_EOL vs.
?

后端 未结 6 1861
粉色の甜心
粉色の甜心 2020-12-04 18:04

In most cases, as for one interactive website, when we output multiple lines of contents to web client browser, in my opinion,
is much more prefer

6条回答
  •  醉梦人生
    2020-12-04 18:36

    I have to run scripts on cron and save results to a log file. But sometimes I run the script on my browser. So I do the following test in order to use the correct end of line char:

    ";
    echo "DISCOVER". $eol;
    ?>
    

提交回复
热议问题