/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/SplFixedArray_fromarray_indexes.phpt
22 строки
488 B
Nikita Popov
Reindent phpt files
04 фев 2020, 00:52
04 фев 2020, 00:52
f8d7958
Код
Авторство
О чём код?
--TEST-- Create a SplFixedArray from an array using the fromArray() function use the default behaviour of preserve the indexes. --CREDITS-- Philip Norton philipnorton42@gmail.com --FILE-- <?php $array = SplFixedArray::fromArray(array(1 => 1, 2 => '2', 3 => false)); var_dump($array); ?> --EXPECT-- object(SplFixedArray)#1 (4) { [0]=> NULL [1]=> int(1) [2]=> string(1) "2" [3]=> bool(false) }