faqts : Computers : Programming : Languages : PHP : kms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 9 people (100%) answered Yes
Recently 9 of 9 people (100%) answered Yes

Entry

Documentation has " <?= " and <br /> and I cant find explanation.

Jun 19th, 2004 21:34
Prontex Design, Ronald Cherry,


<?=$foo?> is just shorthand for <? echo $foo ?>

More information can be found here:
http://www.php.net/echo

-----

<br /> is just the XHTML standard way of using the <br> tag.  In the 
standard, all tags must "close" and since <br></br> could lead to some 
browsers actually rendering 2 line breaks instead of one, you would 
use the <br /> form.

More information can be found here:
http://www.w3schools.com/xhtml/xhtml_howto.asp
http://www.w3.org/MarkUp/