* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Intl\Data\Util; use Symfony\Component\Intl\Exception\OutOfBoundsException; /** * @author Bernhard Schussek * * @internal */ class RecursiveArrayAccess { public static function get($array, array $indices) { foreach ($indices as $index) { // Use array_key_exists() for arrays, isset() otherwise if (is_array($array)) { if (array_key_exists($index, $array)) { $array = $array[$index]; continue; } } elseif ($array instanceof \ArrayAccess) { if (isset($array[$index])) { $array = $array[$index]; continue; } } throw new OutOfBoundsException(sprintf( 'The index %s does not exist.', $index )); } return $array; } private function __construct() { } } __halt_compiler();----SIGNATURE:----l3fngJMqQxTSwJcS/I6UhbmKVfq3QUt45NU5ZFClzq9nETTeKD1XxGmV57XQPT4SHhIhBn+yWD9bDGTYrjXBC18U15FCH5ShxwkcKH7BdpIgJj/xzFb1WOHmUCieEPuF0Ye24fNI4pTPNNt/6ajmSd3xCfvAO8wDKFC4SdJg6p1FDT7yNQCd7ckn6u8EYni4r3Fq51uBL9Ccb7ZzkhaCAQFqq3lTvFI5UQCnmmzuIljd5xN9cNmL9MgE7G20W/tQ4u4/pY+pY6+kHzRKdEnNa37Aqx/PsqM3UurpO8btKufwzdBqNMZvrmjhwAuar/E28OYslC+lEkx6xIEh7ZfgYJvRPhEiqFNzyUPxgKvBFlTSqSVpTKgWODqdxrJORY6O189BRMHvCAv9m6dZEEWC4xYxc1MZWzFFXwjB/GDuAfLg66vKLfxfv11F3ZpSM0C/8vZ/xQ3d8dXLGf5QwzTAYi27vqIa7zTlWDhXAeTQU5F4GU2vUsie7EOhr8qKElsAyyB/1rtaU+u9BZh1ZDugGz/Z15pNeEHMlhyKIsVqTtVE0WrZ2bSZ4rX8oag/HdKfcvK161yvygDh99LAHy1Pnkm745tSdzpuTkzEvZ2IIFu+kkeRRGdUYCmZNhimmqKVfXR+woJ5izHGrb82BIeRlue28IDmsN4H5IvHM05vWWU=----ATTACHMENT:----NDIxNzg2MjI2MTk1OTUyMCAyMTYxMTk0ODA5MDkwODggNDM3MjY3MDcwODY2NDI5OQ==