Quote:
Originally Posted by ast3r3x
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]