Conditions | 6 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public static function isArrayAssoc(array $array, $recursiveCheck = true) |
||
31 | { |
||
32 | foreach ($array as $key => $value) { |
||
33 | if (is_string($key)) { |
||
34 | return true; |
||
35 | } |
||
36 | if ($recursiveCheck && is_array($value) && static::isArrayAssoc($value)) { |
||
37 | return true; |
||
38 | } |
||
39 | } |
||
40 | |||
41 | return false; |
||
42 | } |
||
43 | } |