TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

25 lines
321 B

--TEST--
Test array_push() function : push empty set to the array
--FILE--
<?php
$array = [1,2,3];
$values = [];
var_dump( array_push($array) );
var_dump( array_push($array, ...$values) );
var_dump( $array );
echo "Done";
?>
--EXPECT--
int(3)
int(3)
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
Done