Forum Moderators: coopster

Message Too Old, No Replies

double quotes and single quotes

         

Flolondon

11:12 pm on Aug 18, 2005 (gmt 0)

10+ Year Member



hi...whats the difference between double quote and single quotes. i heard that one of them makes the process run faster through the engine....

jatar_k

3:57 pm on Aug 19, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



they talk about the differences here
[php.net...]

tyrone04

9:23 pm on Aug 19, 2005 (gmt 0)

10+ Year Member



when you use double quotes, php will parse the string to see if there is any variables in it and convert them to the appropriate value. this will waste some parsing time though it shouldn't be a noticable difference. so it's suggested that unless you have variables that need to be converted, use single quotes.

jatar_k

9:51 pm on Aug 19, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



another thread of interest, since you mentioned speed
Benchmarking PHP text output [webmasterworld.com]