Question : namespace autoload php
Answered by : warner-smith
Function __autoload($class)
{
require ("classes/". $class. ".php");
}
$first = new first();
echo "<br>";
$second = new second();
Source : https://phperrorcode.com/php-autoloading/ | Last Update : Sat, 02 Jul 22