问题回应\\\\ n [英] Problem echoing \r\n

查看:71
本文介绍了问题回应\\\\ n的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如果我设置了一个可变的


$ EOL =" \\ nn"


但是后来想回到HTML页面看上面的字符串

ie \\ n


做:echo( $ EOL);


我该怎么做?


我试过quotemeta,addslashes和htmlspecialchar

但似乎无法解决。


谢谢


Andy

解决方案

EOL =" \\\\ nn"


但是想要回复一下HTML页面以查看上面的字符串

ie \\\\


做:echo(


EOL);


我该怎么办?


我试过quotemeta,addslashes和htmlspecialchar

但似乎无法工作它出来了。


谢谢


Andy


一个**** @ blueyonder.com schrieb:


如果我设置一个可变的



If I set a varaible as

$EOL = "\r\n"

But then want to echo that to a HTML page to see the above string
i.e. \r\n

by doing: echo($EOL);

How do I do it?

I''ve tried quotemeta, addslashes and htmlspecialchar
but can''t seem to work it out.

thanks

Andy

解决方案

EOL = "\r\n"

But then want to echo that to a HTML page to see the above string
i.e. \r\n

by doing: echo(


EOL);

How do I do it?

I''ve tried quotemeta, addslashes and htmlspecialchar
but can''t seem to work it out.

thanks

Andy


an****@blueyonder.com schrieb:

If I set a varaible as


这篇关于问题回应\\\\ n的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆