<?php $data = ['Dan', 'Lisa', 'Eric']; $funtimes = function () use (&$data) { echo implode(", ", $data); $data[] = 'John'; }; $funtimes(); var_dump($data);
You have javascript disabled. You will not be able to edit any code.