Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: $-sign in form input names? Date: Tue, 04 Nov 2014 06:55:16 +0100 Lines: 19 Message-ID: References: <996e3930-f711-4338-9093-07115af47380@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net EphabcjKqB1awSC+vynqwAhODrNPZbxZwC+2AOa6w7VeNVVk45 Cancel-Lock: sha1:GA7aE+URqB8Tt50raFOTtQkGMSw= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: Xref: csiph.com comp.lang.php:14453 On 04/11/14 02:02, Denis McMahon wrote: > See http://php.net/manual/en/language.types.string.php > > esp: > > "Note: Unlike the double-quoted and heredoc syntaxes, variables and > escape sequences for special characters will not be expanded when they > occur in single quoted strings." I would add that you should always use single quotes by default and only use double quotes when you need to to use variables/methods inside a string. As the double quotes will make the string to be parsed every time, which causes some slight overhead. -- //Aho