4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Intl\ResourceBundle\Util
;
15 * @author Bernhard Schussek <bschussek@gmail.com>
17 class RecursiveArrayAccess
19 public static function get($array, array $indices)
21 foreach ($indices as $index) {
22 if (!$array instanceof \ArrayAccess
&& !is_array($array)) {
26 $array = $array[$index];
32 private function __construct() {}