"php how to import all classes from another namespace" Code Answer

2

This is not possible in PHP.

All you can do is:

namespace Foo;

use Bar;

$obj = new BarSomeClassFromBar();
By ftocornal-dacf476f3f63 on August 20 2022

Answers related to “php how to import all classes from another namespace”

Only authorized users can answer the search term. Please sign in first, or register a free account.