最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php str_replace 输入框回车替换br
时间:2022-06-24 20:05:50 编辑:袖梨 来源:一聚教程网
| 代码如下 | 复制代码 |
|
function htmtocode($content) { |
|
先替换掉空格,再替换回车。
相当于:
| 代码如下 | 复制代码 |
| function htmtocode($content) { $content = str_replace(" ", " ", $content); $content = str_replace("n", " ",$content); return $content; } |
|
相关文章
- 一篇文章搞懂Python的文件路径操作 09-24
- 使用pycharm进行绘图,图片无法显示的解决 09-24
- jupyter notebook加载和运行.py文件方式 09-24
- 如何解决jupyternotebook无法导入自己安装的包 09-24
- JupyterNotebook如何导入python文件时的问题 09-24
- pandas删除重复数据简单方法 09-24