1 | <?php |
||
8 | class Arr |
||
9 | { |
||
10 | /** |
||
11 | * Determine whether the given value is array accessible. |
||
12 | * |
||
13 | * @param mixed $value |
||
14 | * |
||
15 | * @return bool |
||
16 | */ |
||
17 | public static function accessible($value) |
||
21 | |||
22 | /** |
||
23 | * Return the default value of the given value. |
||
24 | * |
||
25 | * @param mixed $value |
||
26 | * |
||
27 | * @return mixed |
||
28 | */ |
||
29 | public static function value($value) |
||
33 | |||
34 | /** |
||
35 | * Get an item from an array using "dot" notation. |
||
36 | * |
||
37 | * @param \ArrayAccess|array $array |
||
38 | * @param string|int $key |
||
39 | * @param mixed $default |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public static function get($array, $key, $default = null) |
||
71 | |||
72 | /** |
||
73 | * Determine if the given key exists in the provided array. |
||
74 | * |
||
75 | * @param \ArrayAccess|array $array |
||
76 | * @param string|int $key |
||
77 | * |
||
78 | * @return bool |
||
79 | */ |
||
80 | public static function exists($array, $key) |
||
88 | } |
||
89 |