hiphop-php /hphp/test/zend/good/ext/standard/tests/array/bug34982.php

Language PHP Lines 19
MD5 Hash 5a683e98cf3ef45d28edfbabf4d75aad Estimated Cost $283 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?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';
}
?>
Back to Top