<?php function hello($data) { foreach ($data as &$item) { $item['hello'] = 'world'; } return $data; } $data = hello(array('lets', 'go', 'to', 'space')); var_dump($data);
You have javascript disabled. You will not be able to edit any code.