<?php class MyClass { public function calc($a){ function some($b){ //echo $privateVar; return ($b * 3); } $c = some($a) * 2; return $c; } } $test = new MyClass(); $saveValue = $test->calc(10); echo $saveValue;
You have javascript disabled. You will not be able to edit any code.