Conditions | 5 |
Paths | 5 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Darryldecode\Cart\Helpers; |
||
33 | public static function isMultiArray($array, $recursive = false) |
||
34 | { |
||
35 | if( $recursive ) |
||
36 | { |
||
37 | return (count($array) == count($array, COUNT_RECURSIVE)) ? false : true; |
||
38 | } |
||
39 | else |
||
40 | { |
||
41 | foreach ($array as $k => $v) |
||
42 | { |
||
43 | if (is_array($v)) |
||
44 | { |
||
45 | return true; |
||
46 | } |
||
47 | else |
||
48 | { |
||
49 | return false; |
||
50 | } |
||
51 | } |
||
52 | |||
53 | } |
||
54 | } |
||
55 | |||
78 | } |