protected function implodeArray(array $array)
    {
        $results = [];

        foreach ($array as $key => $value) {
            if (is_string($key)) {
                $results[] = "'".$key."' => '".$value."'";
            } else {
                $results[] = "'".$value."'";
            }
        }

        return count($results) > 0 ? implode(', ', $results) : '';
    }
protected function implodeArray(array $array)
    {
        $results = [];

        foreach ($array as $key => $value) {
            if (is_string($key)) {
                $results[] = "'".$key."' => '".$value."'";
            } else {
                $results[] = "'".$value."'";
            }
        }

        return count($results) > 0 ? implode(', ', $results) : '';
    }
protected function implodeArray ( array $ array ) { $ results = [ ] ; foreach ( $ array as $ key => $ value ) { if ( is_string ( $ key ) ) { $ results [ ] = "'" . $ key . "' => '" . $ value . "'" ; } else { $ results [ ] = "'" . $ value . "'" ; } } return count ( $ results ) > 0 ? implode ( ', ' , $ results ) : '' ; }
Implode the given list into a comma separated string.

@param array $array

@return string
Implode the given list into a comma separated string .