找来找去没看到底层函数,只有去github找php源代码了 不过没找到我想要的函数,倒是学到了自己写php内置函数的几个方法
1.用php自动加载,
function
__autoload(
$class
){
$file
=
$class
.
'.php'
;
if
(
is_file
(
$file
)) {
require_once
(
$file
);
}
}
2.睡觉 睡觉 写个拓展文件太难受了