<?php class a { public function b($x = [1,2,3,4]) { if (is_array($x)) { array_walk($x, [$this, __FUNCTION__]); } else { echo $x; } } } $b = new a(); $b->b();
You have javascript disabled. You will not be able to edit any code.