Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace NamespaceOne {
- class Test {
- public function test(){
- $test = new Test;
- $test->standard_function(Other::static_function());
- }
- public function standard_function($test){}
- }
- }
- namespace NamespaceTwo {
- class Other {
- public static function static_function(){}
- }
- }
- namespace {
- function simple(){
- throw new Exception;
- }
- spl_autoload_register('simple');
- $test = new \NamespaceOne\Test;
- $test->test();
- }
Advertisement
Add Comment
Please, Sign In to add comment