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