Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function A(){
- return "testA";
- }
- public function test(){
- $param = 'A';
- $test = $this->$param();
- return $test;
- }
- public function A(){
- return "testA";
- }
- public function test(){
- $param = 'A';
- $test = $this->{$param}();
- return $test;
- }
Add Comment
Please, Sign In to add comment