Putting together a set of strings is easy in PHP and Java, but Objective-C is a little bit of a challenge.
Java is the most obvious, using plus operators:
String myString = "This " + "and " + "that";
PHP uses periods instead:
$myString = "This " . "and " . "that";
C is not so easy when it comes to concatenating strings together. However, one can “print” a string with a format. In old school C this function was “sprintf”. In Objective-C, the function to use is “stringWithFormat”:
NSString * myString = [NSString stringWithFormat: @"%@%@%@", @"This ", @"and ", @"that"];
“When Alexander the Great attempted to untie the Gordian knot, he could not find the end to the knot to unbind it. He sliced it in half with a stroke of his sword.” (Wikipedia Gordian Knot).