english/libraries/joomla/database/database/mysqliquery.php
/**
	 * Concatenates an array of column names or values.
	 *
	 * @param   array   $values     An array of values to concatenate.
	 * @param   string  $separator  As separator to place between each value.
	 *
	 * @return  string  The concatenated values.
	 *
	 * @since   11.1
	 */
Concatenates an array of column names or values.
@param   array   $values     An array of values to concatenate.
@param   string  $separator  As separator to place between each value.

@return  string  The concatenated values.


Concatenates an array of column names or values . @param array $values An array of values to concatenate . @param string $separator As separator to place between each value . @return string The concatenated values .
function concatenate($values, $separator = null)
   {
		if ($separator) {
			$concat_string = 'CONCAT_WS('.$this->quote($separator);
			foreach($values as $value)
			{
				$concat_string .= ', '.$value;
			}
			return $concat_string.')';
		}
		else {
			return 'CONCAT('.implode(',', $values).')';
		}
	}
function concatenate ( $ values , $ separator = null ) { if ( $ separator ) { $ concat_string = 'CONCAT_WS(' . $ this -> quote ( $ separator ) ; foreach ( $ values as $ value ) { $ concat_string .= ', ' . $ value ; } return $ concat_string . ')' ; } else { return 'CONCAT(' . implode ( ',' , $ values ) . ')' ; } }
Concatenates an array of column names or values.
Concatenates an array of column names or values .