What is faster in PHP, single or double quotes? [duplicate]
问题 Possible Duplicate: Is there a performance benefit single quote vs double quote in php? Which is faster, single or double quotes and why? Also, what is the advantage of using either method? 回答1: Depends what you want to do. I just did some benchmarks and tested string assignment with a 5 test cases: double quotes + variable, double quotes, double quotes and string append, single quotes, and single quotes with string append. My test code. A million loops. String assignment. <?php $start =