WOULD YOU INITIALIZE YOUR STRINGS WITH SINGLE QUOTES OR DOUBLE QUOTES?

Arun Singh

Total Post:310

Points:1550
Posted by  Arun Singh
PHP 
PHP
 2036  View(s)
Ratings:
Rate this:
  1. Arun Singh

    Post:310

    Points:1550
    Would you initialize your strings with single quotes or double quotes?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!