You are here: Best to use single or double quote for forming strings? « PHP Programming Language « IT news, forums, messages
Best to use single or double quote for forming strings?

Posted by MrBiggles on 02/18/06 22:21

Here's something I've been wondering. Do most of you use single or
double quotes as a string encapsultor?

ex:
$s = "This is a string, I can embed ' with no prob";
vs.
$s = 'This is a string, I can embed " with no prob';

Is there an advantage or best-practice reason to choose one over the other?

Thanks!

 

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

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