<?php class NestedFunctions { public function fn1() { function nested_fn() { echo 'yay' . "\n"; } nested_fn(); } } $nested = new NestedFunctions(); $nested->fn1(); $nested->fn1();
You have javascript disabled. You will not be able to edit any code.