新队 [英] Newline

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

问题描述

Hello Everyone,


我在Windows XP机器上运行PHP for Apache。


当我尝试使用\ n时在我的代码中生成一个换行符,它没有
工作。我还看到了关于使用\r和\ n的其他帖子,但

也没用。我有点被困在这里。有没有什么

可以用来生成换行符?

Hello Everyone,

I am running PHP for Apache on a Windows XP machine.

When I attempt to use \n in my code to generate a newline, it does not
work. I''ve also see the other posts about using \r along with \n, but
that doesn''t work either. I''m sort of stuck here. Is there anything
that I can do to generate a newline?

推荐答案

infernon写道:
infernon wrote:
当我尝试在我的代码中使用\ n来生成换行符时,它不起作用。我还看到了关于使用\r和\ n的其他帖子,但是
也没有用。我有点被困在这里。有没有什么可以做生成换行?
When I attempt to use \n in my code to generate a newline, it does not
work. I''ve also see the other posts about using \r along with \n, but
that doesn''t work either. I''m sort of stuck here. Is there anything
that I can do to generate a newline?




我的赌注是你这样做:


echo''Test \ n'';


这里的问题是单引号。单引号告诉解析器

只是吐出这个字符串,并忽略任何修饰符或变量。


所以,试试这个:


echo''测试''。" \ n" ;;

祝你好运,

Carl


-

Carl Vondrick

网络工程师
www.carlsoft.net


感谢您的快速回复,Carl。


我实际上是在使用双引号。确切的代码是:

printf(%1d%9s at \
Thanks for the quick response, Carl.

I''m actually using double-quotes. The exact code is:
printf("%1d %9s at \


%。每个2f:\


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

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