In python you can do "import star" to embed everything from another namespace into the local one:
# file "spam":
def ham():
some code
# file "main":
from spam import *
xy = ham() <-- uses 'ham' from 'spam'
This is usually considered "bad practice", but I'm still wondering how to do the same with php namespaces. The following doesn't work:
# file "spam":
namespace spam;
function ham() {
some code
}
# file "main":
include "spam.php";
use spam;
xy = ham() <-- error