php-src/Zend/tests/double_array_cast.phpt
2014-10-13 15:31:59 +02:00

19 lines
181 B
PHP

--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)
}