The art of PHP callback PHP callback are functions that may be called dynamically by PHP. They are used by native functions such as array_map, usort, preg_replace_callback, etc. Here is ...

Read More »

通过PHP静态变量进行缓存 当一段代码里在重复使用一个方法调用时,你也许会问如果把值本地缓存起来难道不会更有效率,这样完全避免函数调用而提高处理速度。让我来看看我们如何可能来使用缓存通过PHP的静态变量。

Read More »