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

Arun Singh

Total Post:0

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

    Post:309

    Points:1545
    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!