View Single Post
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2007-11-19, 01:26

Quote:
Originally Posted by ast3r3x View Post
Single quoted strings ('like this') are faster because PHP doesn't have to parse them looking for escaped characters and variables in double quoted strings ("like this").
...except that PHP does check single-quoted strings for escaped characters.

[php]<?php $foo = 'Moe\'s Bar'; ?>[/php]



Since we're discussing different manners of output, there's also this syntax:

[php]Let's have drinks at <?=$foo?> tonight.[/php]
  quote