<?php class foo { static public function instance () { echo 'hi'; return new self(); } } $method = 'foo'; var_dump( call_user_func( $method . '.::instance' ) );
You have javascript disabled. You will not be able to edit any code.