mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
19 lines
181 B
Plaintext
19 lines
181 B
Plaintext
|
--TEST--
|
||
|
Double array cast
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$array = [1, 2, $x = 3];
|
||
|
var_dump((array) (array) $array);
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
array(3) {
|
||
|
[0]=>
|
||
|
int(1)
|
||
|
[1]=>
|
||
|
int(2)
|
||
|
[2]=>
|
||
|
int(3)
|
||
|
}
|