当前位置: 代码迷 >> PHP >> php字符串中带\t时怎样才能正常输出?解决方法
  详细解决方案

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

热度:388   发布时间:2016-04-29 01:38:32.0
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");
------解决方案--------------------
探讨

嗯。。。糟糕的很。现在每次都弄错了。。。
我发现我刚才说的addslashes仍然不能解决 \t 的问题,稍等
  相关解决方案