Home > DeveloperSection > Interviews > Would you initialize your strings with single quotes or double quotes?
Arun Singh

Total Post:312

Points:1560

Posted on    May-04-2012 8:14 AM

 PHP PHP 
Ratings:
 1 Answer(s)
  929  View(s)
Rate this:

Arun Singh

Total Post:312

Points:1560
Posted on    May-04-2012 12:00 AM

Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.















Recent Activities

jayprakash sharma Created New Discussion what is short circuit operator in java   6 hours ago

Sumit Kesarwani added new Question What is the Vector class in java?   2 days ago

Anchal Kesharwani added new Blog JSON Syntax   9 days ago

Anchal Kesharwani added new Article How to Send Mail in Node.JS   9 days ago

Top Contributors

Don't want to miss updates? Please click the below button!