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

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

WBOY
WBOYOriginal
2016-06-13 10:16:49863browse

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>
探讨

嗯。。。糟糕的很。现在每次都弄错了。。。
我发现我刚才说的addslashes仍然不能解决 \t 的问题,稍等
Statement:
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