You are here: Re: Coding style... « All PHP « IT news, forums, messages
Re: Coding style...

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация