<?php $count = []; $callback = function ($i) use ($count) { $count[] = $i; return $count; }; for ($i = 0; $i < 4; $i++) { call_user_func($callback, $i); } var_dump($count);
You have javascript disabled. You will not be able to edit any code.