/hphp/test/zend/good/ext/standard/tests/array/bug34982.php
PHP | 18 lines | 15 code | 3 blank | 0 comment | 0 complexity | 5a683e98cf3ef45d28edfbabf4d75aad MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?php
- $ar = array(
- 'element 1',
- array('subelement1')
- );
- func($ar);
- print_r($ar);
- function func($a) {
- array_walk_recursive($a, 'apply');
- print_r($a);
- }
- function apply(&$input, $key) {
- $input = 'changed';
- }
- ?>