RE: [PHP] php and javascript error
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Mon, 12 Mar 2007 21:48:20 -0500 (CDT)
On Sun, March 11, 2007 9:21 am, tedd wrote:
At 5:28 PM +0100 3/7/07, afan@xxxxxxxx wrote:
> PS: If you want your code to validate, change the & to & Add
the
closing </a> tag too.in such a cases I usually use <?= $var ?> instead <?php echo $var ?>.
PPS: It's advisable not to use the short tags, use <?php instead
of <?
At
least it's shorter. :)
-afan
But, while it's shorter, it's still NOT advisable to use the shorter
tags.
I believe short tags is/was/maybe slated for removal completely in PHP
6...
That may have been shot down.
Or maybe <?= is kept, while the generic <? is going away...
I kinda LIKE <?= personally, but not enough to risk using it if I'll
have to rewrite a zillion lines of code in a few years.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.
- References:
- RE: [PHP] php and javascript error
- From: "Edward Kay"
- RE: [PHP] php and javascript error
- From: afan
- RE: [PHP] php and javascript error
- From: tedd
- RE: [PHP] php and javascript error
- Prev by Date: Re: [PHP] php and javascript error
- Next by Date: Re: [PHP] stream_get_contents() quite slow
- Previous by thread: RE: [PHP] php and javascript error
- Next by thread: Re: [PHP] php and javascript error
- Index(es):
Relevant Pages
|