I try to use namespaces with included files:
<?php
namespace MyNamespace;
function foo() {
echo 'Test';
}
include( 'otherfile.php' );
?>
Inside otherfile.php is a <?php foo(); ?>; and I would like too see "Test" as output of it.
Is there any chance to realize that, without modifying that other file?
My wish: I would like to replace an existing file inside the code of an external library. I don't want to modify that code, since I expect to get further updates there.