Use Single Quotes for Literal Strings

  1. Unless you need variable interpolation, single quotes are faster and avoid accidental interpretation of special characters.
 $name = 'John';

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *