echo的问题< br /> [英] trouble with echo <br />

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

问题描述

我是一个极端的新手,并且已经在PHP.Net网站上嗅了好几天。只有,由于页面底部的编码样本,搜索功能会返回很多与'b
真正相关的信息。


我是什么我试图确定的是:


哪个更适合根据动态变量将信息打印到页面?

IE - 如果我有一个boolean = True ,我应该使用PrintF,打印,echo来吐出

的信息吗?


另外,当我使用其中任何一个,并且有一个< br /> ;在声明中,它将< br>

代替,而我不能为了我的生命而把它放到/>最后还有。


还有一件事(开始大肆讨论o问题),

布尔使用的语法(基本格式?)


我用了

$ good = TRUE


if($ good == TRUE){echo" blah< ; br />"并且它似乎没有触发。


如果我使用= TRUE,它会触发,但我认为出于某种原因这是错误的。


-Khai

I''m an extreme newbie, and have been nosing around the PHP.Net site for a
few days. Only, the search function returns alot of information that''s not
truly relevant due to Coding samples at the bottom of the pages.

What I''m trying to determine is :

Which is better for printing info to a page based on dynamic variables?
IE - if I have a boolean = True, should I use PrintF, print, echo to spit
out the info?

Also, when I use either, and have a <br /> in the statement, it puts <br>
instead, and I can''t for the life of me get it to put /> there at the end.

And one more thing (begins a rambling rant o questions), the syntax for
boolean use (basic format?)

I used
$good = TRUE

if($good == TRUE) { echo "blah <br />" } and it doesn''t seem to trigger.

If I use = TRUE, it triggers, but i think that''s wrong for some reason.

-Khai

推荐答案

good = TRUE


if(
good = TRUE

if(


good == TRUE){echo" blah< br />"并且它似乎没有触发。


如果我使用= TRUE,它会触发,但我认为出于某种原因这是错误的。


-Khai
good == TRUE) { echo "blah <br />" } and it doesn''t seem to trigger.

If I use = TRUE, it triggers, but i think that''s wrong for some reason.

-Khai


Echo是一个构造,print是一个函数。我认为速度明智他们

应该都是一样的。


尝试

Echo is a construct, print is a function. I think speed wise they
should both be the same.

Try


这篇关于echo的问题&lt; br /&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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