<?php class A { public function foo ($x) { function check($a) { var_dump($a); } check($x); } } $bar = new A; $bar->foo(111); check(222);
You have javascript disabled. You will not be able to edit any code.