mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +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)
|
|
}
|