php - 如何打破PHP连接线?
问题描述
是否可以在以下代码中换行
$data['snippets_html']= $bootstrap_css.''.$bootstrap_js.''.$jquery_js.''.$ContentDecodedHTML;
我试过了
$data['snippets_html']= $bootstrap_css.'<br>'.$bootstrap_js.'<br>'.$jquery_js.'<br>'.$ContentDecodedHTML;
解决方案
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;
推荐阅读
- css - word-wrap 在行 flex 容器内的 flex-item 中不起作用
- python - 使用擦除旧选项卡将数据框写入 Excel 文件
- javascript - 有没有办法为视野定义一个动态边界框?
- vb.net - 我应该将什么值设置为提供程序以连接到 VB.NET 中的 Access 数据库?
- r - 我的 ggplot 条形图 reorder() 函数不起作用
- javascript - 无法正确显示悬停时导航下拉列表中的所有数据
- spring - Hibernate DuplicateMappingException 与来自不同数据库的 bean
- python - Tensorflow 2 + Keras 的知识蒸馏损失
- c# - Unity C# 的问题 - 当前上下文中不存在名称 (CS0103)
- django - 如何在 Django REST API 的序列化程序中使用 2 个模型?