|
Posted by Janwillem Borleffs on 01/02/06 13:03
Lόpher Cypher wrote:
> Btw, I prefer to rather escape quotes (\"). I believe "" is a standard
> for xhtml, and there was some slight difference between '' and "" in
> php. However, for strings in php, you can't go wrong with "" :)
>
Using quotes for attribute values is a standard in XHTML; it doesn't matter
when they are single or double.
In PHP, strings encapsuled in double quotes are parsed, and strings in
single quotes are taken literally. So, when you don't need to output
variable values, single quotes are the best choice.
JW
[Back to original message]
|