mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
22 lines
190 B
PHP
22 lines
190 B
PHP
--TEST--
|
|
list() with array reference
|
|
--FILE--
|
|
<?php
|
|
|
|
$arr = array(2, 1);
|
|
$b =& $arr;
|
|
|
|
list(,$a) = $b;
|
|
|
|
var_dump($a, $b);
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
array(2) {
|
|
[0]=>
|
|
int(2)
|
|
[1]=>
|
|
int(1)
|
|
}
|