[wp-hackers] usage of single quotes and double quotes in PHP

Dion Hulse (dd32) wordpress at dd32.id.au
Fri Mar 4 00:15:23 UTC 2011


Yes, ' is better/greater than "
Except when the string will include the ' character, in which case, just use
" anyway.
IE. "This is a 'test' string." vs 'This is a \'test\' string.' the first is
more readable.

On 4 March 2011 10:48, Satish Gandham <satish.iitg at gmail.com> wrote:

> *Dion Hulse,
>
> You mean its better to use ' than ", right?
>
> *
>
> In WordPress, ' > " unless the string is going to contain
>
>
>
>
> Regards
> Satish Gandham
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list