1--TEST-- 2testing the behavior of string offset chaining 3--FILE-- 4<?php 5$array = array('expected_array' => "foobar"); 6var_dump(isset($array['expected_array'])); 7var_dump($array['expected_array']); 8var_dump(isset($array['expected_array']['foo'])); 9var_dump($array['expected_array']['0foo']); 10var_dump(isset($array['expected_array']['foo']['bar'])); 11var_dump($array['expected_array']['0foo']['0bar']); 12?> 13--EXPECTF-- 14bool(true) 15string(6) "foobar" 16bool(false) 17 18Warning: Illegal string offset "0foo" in %s on line %d 19string(1) "f" 20bool(false) 21 22Warning: Illegal string offset "0foo" in %s on line %d 23 24Warning: Illegal string offset "0bar" in %s on line %d 25string(1) "f" 26