Gives an error: [Call to undefined function fun2 () ...], how to execute fun2?
<?php class User { public function fun1($arg1,$arg2) { echo '<br>Start fun1;'; fun2($arg1); } public function fun2($arg1) { echo '<br>Start fun2;'; } } $user = new User(); $arg1 = $_REQUEST['arg1']; $arg2 = $_REQUEST['arg2']; $user-> fun1($arg1,$arg2); ?>