classes/phing/system/util/RegisterSlot.php
private function implodeArray(array $arr)
    {
        $values = [];

        foreach ($arr as $value) {
            if (is_array($value)) {
                $values[] = $this->implodeArray($value);
            } else {
                $values[] = $value;
            }
        }

        return "{" . implode(",", $values) . "}";
    }
private function implodeArray(array $arr)
    {
        $values = [];

        foreach ($arr as $value) {
            if (is_array($value)) {
                $values[] = $this->implodeArray($value);
            } else {
                $values[] = $value;
            }
        }

        return "{" . implode(",", $values) . "}";
    }
private function implodeArray ( array $ arr ) { $ values = [ ] ; foreach ( $ arr as $ value ) { if ( is_array ( $ value ) ) { $ values [ ] = $ this -> implodeArray ( $ value ) ; } else { $ values [ ] = $ value ; } } return "{" . implode ( "," , $ values ) . "}" ; }
Recursively implodes an array to a comma-separated string

@param  array $arr
@return string
Recursively implodes an array to a comma - separated string