2 /* vim: set expandtab sw=4 ts=4 sts=4: */
11 if (! defined('PHPMYADMIN')) {
16 * Access to a multidimensional array by dot notation
18 * @param array $array List of values
19 * @param string|array $path Path to searched value
20 * @param mixed $default Default value
22 * @return mixed Searched value
24 function get($array, $path, $default = null)
26 if (is_string($path)) {
27 $path = explode('.', $path);
29 $p = array_shift($path);
31 if (!isset($array[$p])) {
35 $p = array_shift($path);