It’s easy to just use double quotes when concatenating strings because it parses everything neatly without having to deal with escaping characters and using dot values. However, using single quotes has considerable performance gains, as it requires less processing. For Example: <?php //Consider this string $howdy = ‘everyone’; $foo = ‘hello $howdy’; $bar = “hello $howdy”; // Concatenating this strings $howdy = ‘everyone’; …
Tag: Single quotes
Permanent link to this article: https://blog.openshell.in/2010/11/single-quotes-double-quotes/