标签:
<?php
spl_autoload_register(‘autoload1‘);
spl_autoload_register(‘autoload2‘);
test1::test();
test2::test();
function autoload1($class){
include strp(__DIR__).‘/‘.$class.‘.php‘;
}
function autoload2($class){
include strp(__DIR__).‘/‘.$class.‘.php‘;
}
function strp($path){
return str_replace(‘\\‘, ‘/‘, $path);
}
?>
标签:
原文地址:http://www.cnblogs.com/dongcaicai/p/4808358.html