首页 > 解决方案 > 如何打破PHP连接线?

问题描述

是否可以在以下代码中换行

$data['snippets_html']=  $bootstrap_css.''.$bootstrap_js.''.$jquery_js.''.$ContentDecodedHTML;

我试过了

$data['snippets_html']=  $bootstrap_css.'<br>'.$bootstrap_js.'<br>'.$jquery_js.'<br>'.$ContentDecodedHTML;

标签: php

解决方案


You can use PHP_EOL to add line break and interpret it as such across platform ( Windows/Linux).

$data['snippets_html'] =  $bootstrap_css . PHP_EOL . $bootstrap_js . PHP_EOL . $jquery_js . PHP_EOL . $ContentDecodedHTML;

Working Link


推荐阅读