Friday, November 19, 2010

Is Single Quotes better then double quotes

By using single quotes instead of double quotes, we save PHP from having
to parse your string for variables. It's not only is faster, but I find it
more programmer-friendly because it is easier to find variables in your
code.
Also, when referencing an array that has a string index, always use single
quotes. This prevents PHP from having to figure out exactly what you were
trying to say.

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off