One should get in the habit of always using single quotes unless there is a variable inside that should be parsed (and, if so, it should be wrapped with { and } to at least make it obvious). Using double quotes without variables is wasting parse cycles.
On Fri, Apr 25, 2008 at 10:08 AM, seb <[EMAIL PROTECTED]> wrote: > > rtanz wrote: > > cheers that worked perfectly, another thing while we're at it, i am > > noticing that the code works the same whether you use single or double > > quotes, is one or the other better? Sorry might be a php thing and > > nothing related to cake, im not an expert in php itself either. thanks > > Using single or double quotes does not change anything. Both are string > delimiters. > > *BUT* if you use double quotes you'll be able to escape some more sequences. > > Have a look at : > > > http://us2.php.net/manual/en/language.types.string.php#language.types.string.syntax.single > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---