/hphp/test/slow/ext_array/array_push.php
PHP | 10 lines | 8 code | 2 blank | 0 comment | 0 complexity | 6409244000d703325263fd527b14fa43 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
- <?hh
- <<__EntryPoint>>
- function main_array_push() {
- $input = varray["orange", "banana"];
- $size = array_push(inout $input, "apple", "raspberry");
- var_dump($input);
- var_dump($size);
- }