1
Mutoo 2013 年 12 月 12 日
wordpress是开源的,你为什么不直接去下载源码看。
https://github.com/WordPress/WordPress |
2
airyland 2013 年 12 月 12 日 以 <!--more--> 为标识符split成数组
|
4
Mutoo 2013 年 12 月 12 日 @mikej 也不是多复杂的事,下载下来,全文搜索一下。关键实现也就一两句话的事。
wordpress 用的确实是 选正则再 explode 的方法,比直接 split 要高效一些: https://gist.github.com/mutoo/7930215 |
5
Mutoo 2013 年 12 月 12 日
@Mutoo 至于为什么 explode 比 split 快,可以看这个 http://stackoverflow.com/questions/3640990/what-is-the-difference-between-split-and-explode
|