1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00
Files
archived-php-src/Zend/tests/nullsafe_operator/037.phpt
2020-08-31 16:44:36 +02:00

16 lines
221 B
PHP

--TEST--
Test nullsafe operator in nested delayed dims
--FILE--
<?php
$foo = new stdClass();
$foo->bar = 'bar';
$array = ['foo' => ['bar' => 'baz']];
var_dump($array['foo'][$foo?->bar]);
?>
--EXPECT--
string(3) "baz"