Combining Strings5:34 with Alena Holligan
Combining data in a string is called concatenation. Besides using double quotes to add another variable into a string, PHP string concatenation also provides two string operators.
There are two string operators. The first is the concatenation operator ('.'), which returns the concatenation of its right and left arguments. The second is the concatenating assignment operator ('.='), which appends the argument on the right side to the argument on the left side. Please read Assignment Operators for more information.
To summarize concatenation. If you want to add a single variable to a string you can include that variable within your double quoted assignment. If you are concatenating a single line you would use a single dot between each string. If you are concatenating multiple lines, you should use the .= assignment operator.
You need to sign up for Treehouse in order to download course files.Sign up