Home > Backend Development > PHP Tutorial > php字符串中带t时怎样才能正常输出?解决方法

php字符串中带t时怎样才能正常输出?解决方法

WBOY
Release: 2016-06-13 13:37:24
Original
1080 people have browsed it

php字符串中带\t时怎样才能正常输出?
php字符串中带\t时怎样才能正常输出?


------解决方案--------------------

PHP code
<?php $str = "D:\PHPnow-1.5.6\htdocs\zc_default\includes\templates\template_default\templates\tpl_product_info_display.php";
echo addcslashes($str, "\n\r\t");
<br /><font color="#e78608">------解决方案--------------------</font><br>
Copy after login
探讨

嗯。。。糟糕的很。现在每次都弄错了。。。
我发现我刚才说的addslashes仍然不能解决 \t 的问题,稍等
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template