3 ms·
See __DIR__ if >= 5.3
by jasonlotito 14y ago
See __DIR__ if >= 5.3
- ChiperSoft 14y agoWhich, since he's using an anonymous function, he would be.
- nodesocket 14y agoIndeed, slightly cleaner I suppose: spl_autoload_register(function($class_name) { require(dirname(__DIR__) . "/classes/" . $class_name . ".php"); });