Top "String-concatenation" questions

String concatenation is the operation of joining two character strings end-to-end.

How to concatenate string variables in Bash

In PHP, strings are concatenated together as follows: $foo = "Hello"; $foo .= " World"; Here, $foo becomes "Hello World". How is this …

bash shell syntax concat string-concatenation
How to concatenate text from multiple rows into a single text string in SQL server?

Consider a database table holding names, with three rows: Peter Paul Mary Is there an easy way to turn this …

sql sql-server csv string-concatenation group-concat
How do I concatenate strings and variables in PowerShell?

Suppose I have the following snippet: $assoc = New-Object PSObject -Property @{ Id = 42 Name = "Slim Shady" Owner = "Eminem" } Write-Host $assoc.Id + " - " + $…

powershell string-concatenation
Shortcuts in Objective-C to concatenate NSStrings

Are there any shortcuts to (stringByAppendingString:) string concatenation in Objective-C, or shortcuts for working with NSString in general? For example, …

objective-c nsstring string-concatenation
How can two strings be concatenated?

How can I concatenate (merge, combine) two values? For example I have: tmp = cbind("GAD", "AB") tmp # [,1] [,2] # [1,] "GAD" "AB" My …

r string-concatenation r-faq
String concatenation in Ruby

I am looking for a more elegant way of concatenating strings in Ruby. I have the following line: source = "#{ROOT_…

ruby string-concatenation
How to efficiently concatenate strings in go

In Go, a string is a primitive type, which means it is read-only, and every manipulation of it will create …

string go string-concatenation
How do I concatenate two strings in Java?

I am trying to concatenate strings in Java. Why isn't this working? public class StackOverflowTest { public static void main(String …

java string-concatenation
Concatenating string and integer in python

In python say you have s = "string" i = 0 print s+i will give you error so you write print s+…

python concatenation string-concatenation