常量 : PHP_EOL
换行实例:

<?

php echo $this->doctype($this->doctype) . PHP_EOL;?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GBK" /> <title><?php echo $this->front['title'];?></title> <?

php $this->headLink() ->appendStylesheet($this->front['css'] . "style.css"); echo $this->headLink() . PHP_EOL; ?

> <?php $this->headScript() ->appendFile($this->front['js'] . "/jquery.js"); echo $this->headScript() . PHP_EOL; ?

>

这样,使用常量 PHP_EOL 以后。当我们查看页面源代码时。就能够看到更清晰的页面效果了。

相关文章:

  • 2021-10-03
  • 2021-08-02
  • 2021-06-11
  • 2022-02-12
  • 2021-12-05
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-01
  • 2022-12-23
  • 2022-02-03
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案