Posts by user30635 • 21 points
1 post
-
2
votes1
answer40
viewsQ: How to get the namespace where the function is called?
Is there any way to do that? <?php namespace Bar { class test { public function test($action) { call_user_func($action); // must call \Foo\Action } } } namespace Foo { $test = new \Bar\Test;…