Reply to Re: Best to use single or double quote for forming strings?

Your name:

Reply:


Posted by Janwillem Borleffs on 02/18/06 22:36

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

Depends if there are variables which should be parsed:

$name = 'Joe';
$str = "His name is $name";

$str = 'His name is Joe';

Double-quoted strings are parsed, while single-quoted strings are taken
literally (= faster).


JW

[Back to original 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

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