Lines Matching refs:array
21 public static function get($array, $key, $default = null) argument
23 if (!static::accessible($array)) {
27 return $array;
29 if (static::exists($array, $key)) {
30 return $array[$key];
33 return $array[$key] ?? $default;
36 if (static::accessible($array) && static::exists($array, $segment)) {
37 $array = $array[$segment];
42 return $array;
63 protected static function exists($array, $key) argument
65 if ($array instanceof \ArrayAccess) {
66 return $array->offsetExists($key);
68 return array_key_exists($key, $array);