10条PHP高级技巧[修正版]

2019-04-09 01:06:22于海丽

这样使用isset 比strlen稍快的原因是复杂的。简单的解释是,strlen() 是一个函数,而 isset() 是一个语法结构。通常来说,
调用一个函数是比使用语言结构的代价更为昂贵的。
关于作者:
Hi,我们是 Chris Shiflett和 Sean Coates. 我们都在 OmniTI (“the most important web company you've never heard of”)工作, blog about PHP and other stuff at shiflett.org and seancoates.com, curate PHP Advent, and do the Twitter thing as @shiflett and @coates.
译 FROM : http://coding.smashingmagazine.com/2009/03/24/10-useful-php-tips-revisited/
相关文章 大家在看