Total Complexity | 8 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
4 | final class Arrays |
||
5 | { |
||
6 | public static function get($array, $key, $defaultValue = false) |
||
7 | { |
||
8 | if (!is_array($array)) { |
||
9 | return $defaultValue; |
||
10 | } |
||
11 | return array_key_exists($key, $array) ? $array[$key] : $defaultValue; |
||
12 | } |
||
13 | |||
14 | public static function isMultidimensional($array = []) |
||
20 | } |
||
21 | |||
22 | public static function nullToEmptyString($array = []) |
||
31 |