40条PHP代码的优化技巧
<br />1. If a method can be static, declare it static. Speed improvement is by a factor of 4. <br />如果一个方法可静态化,就对它做静态声明。速率可提升至4倍。<br /><br />2. echo is faster than print. <br />echo 比 print 快。<br /><br />3. Use echo’s multiple parameters instead of string
转载
2011-04-15 15:36:00 ·
295 阅读 ·
0 评论