Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public static function array2String(array $input, $keyValueDelimiter, $valueEndDelimiter) |
||
27 | { |
||
28 | $ret = ''; |
||
29 | foreach ($input as $key => $value) { |
||
30 | if (is_array($value)) { |
||
31 | $ret .= self::array2String($value, $keyValueDelimiter, $valueEndDelimiter); |
||
32 | } elseif ($key) { |
||
33 | $ret .= $key . $keyValueDelimiter . $value . $valueEndDelimiter; |
||
34 | |||
35 | } |
||
36 | } |
||
37 | |||
38 | return $ret; |
||
39 | } |
||
40 | } |