优化PHP代码的40条建议

如果一个方法可静态化,就对它做静态声明。速率可提升至4倍。str_replace函数比preg_replace函数快,但strtr函数的效率是str_replace函数的四倍。

Related posts