And what about the third option using single quotes on the
outside i.e.
print '
20){print '40';} else {print
'20';}?>
VALUE=
etc..
rather than my normal style which would be :
print '
> im here to start a flamewar.
>
> dont use " then. why not use ' ?
>
> echo "
>
>
I posted the exact same question a while ago, because i know that ASP does
slow down when you jump in and out of the asp dll.
I tried benchmarking it, and asked my geekiest of geek friends. All results
thus far point to the fact that both work just as well. and imho, the
alternate syntax is a lo
On Thursday 21 June 2001 09:31, Ray Hilton wrote:
XML allows both single and double quotes for attributes, and XHTML is
defined as XML DTD, so it allows it too.
> I dont think thats XHTML complient... Correct me if im wrong?
>
> -Original Message-
> im here to start a flamewar.
>
> do
I dont think thats XHTML complient... Correct me if im wrong?
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: 20 June 2001 23:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP] General Coding Question
im here to start a flamewar.
dont use " then. why not use '
> this whole bench thing really needs someone to sit down and go "i bet i
> could write some code to see in less time then it would take to post ?"
dont
> get mad, people are allways posting this.
>
> " is this aster then that ? "
>
> write some code and see. its very hardware/os dependant. your
> You don't use a lot of javascript, do you?
Start your JS with \" and end it with \" inside PHP code.
No biggie.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administr
You don't use a lot of javascript, do you?
""Chris Lee"" <[EMAIL PROTECTED]> wrote in message
9gr5f9$v2$[EMAIL PROTECTED]">news:9gr5f9$v2$[EMAIL PROTECTED]...
> im here to start a flamewar.
>
> dont use " then. why not use ' ?
>
> echo "
>
>"
>
> echo "
>
>"
> I like the second
im here to start a flamewar.
dont use " then. why not use ' ?
echo "
"
echo "
"
I like the second. it is proper html check it with w3.org.
--
Chris Lee
[EMAIL PROTECTED]
""scott [gts]"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
on pages with mostly HTML code, the second style is much
prefereable, but on pages with mostly PHP code, the first
style is usually OK.
overall, i tend towards the second, becuase it's a pain
in the ass to esape all the double-quotes in my HTML,
my echo statements usulaly end up looking like thi
this whole bench thing really needs someone to sit down and go "i bet i
could write some code to see in less time then it would take to post ?" dont
get mad, people are allways posting this.
" is this aster then that ? "
write some code and see. its very hardware/os dependant. your system may be
10 matches
Mail list logo