hiphop-php /hphp/test/quick/array-compact.php

Language PHP Lines 11
MD5 Hash 35c594690d25674995f6ea45a9070370 Estimated Cost $192 (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
<?php
function f($a) {
  $a["four"] = 4;
  return $a;
}
$a = array(1=>1, 2=>2, 3=>3);
unset($a[1]);
unset($a[2]);
unset($a[3]);
var_dump(f($a));
Back to Top