Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | public static function isAssoc(array $array) |
||
17 | { |
||
18 | _deprecated_function(__METHOD__, '1.4.0'); |
||
19 | // Keys of the array |
||
20 | $keys = array_keys($array); |
||
21 | |||
22 | // If the array keys of the keys match the keys, then the array must |
||
23 | // not be associative (e.g. the keys array looked like {0:0, 1:1...}). |
||
24 | return array_keys($keys) !== $keys; |
||
25 | } |
||
50 |