| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 20 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 37 | public static function arrayMergeConcat() | ||
| 38 |     { | ||
| 39 | $out = []; | ||
| 40 | // loop through the arguments | ||
| 41 |         foreach (func_get_args() as $arr) { | ||
| 42 | |||
| 43 | // loop through each array | ||
| 44 |             foreach ($arr as $key => $value) { | ||
| 45 | // If the same key exists in the $out array | ||
| 46 |                 if (array_key_exists($key, $out)) { | ||
| 47 | // concat the values | ||
| 48 | $out[$key] = $out[$key].$arr[$key]; | ||
| 49 | } | ||
| 50 |                 else { | ||
| 51 | $out[$key] = $arr[$key]; | ||
| 52 | } | ||
| 53 | } | ||
| 54 | } | ||
| 55 | return $out; | ||
| 56 | } | ||
| 57 | } |