xref: /PHP-7.4/Zend/tests/double_array_cast.phpt (revision e62edf2e)
1--TEST--
2Double array cast
3--FILE--
4<?php
5
6$array = [1, 2, $x = 3];
7var_dump((array) (array) $array);
8
9?>
10--EXPECT--
11array(3) {
12  [0]=>
13  int(1)
14  [1]=>
15  int(2)
16  [2]=>
17  int(3)
18}
19