Page 1 of 1

initialize strings in php

Posted: Sun Sep 14, 2014 3:45 pm
by Joshi jahanvi
Would you initialize your strings with single quotes or double quotes?

Re: initialize strings in php

Posted: Sun Jul 12, 2015 11:38 am
by sonall gajera
Since the data inside the single-quoted string is not parsed for variable substitution, its always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.