1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/ext/spl/tests/SplFixedArray_offsetGet_integer.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

20 lines
357 B
PHP

--TEST--
Using SplFixedArray::offsetGet() with various types
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--FILE--
<?php
$arr = new SplFixedArray(2);
$arr[0] = 'foo';
$arr[1] = 'bar';
var_dump($arr->offsetGet(0.2));
var_dump($arr->offsetGet(false));
var_dump($arr->offsetGet(true));
?>
--EXPECT--
string(3) "foo"
string(3) "foo"
string(3) "bar"