Forum Moderators: coopster
Abc.php <?php namespace yarco\test; class Abc { } ?>
test.php <?php include 'Abc.php'; use yarco\test\Abc;
$o = new Abc; ?>
?Why not python's import?
The "use" is the import (or alias).
[php.net...] [php.net...]