Skip to main content

Variables - Data Types

...

📄️ String Concatenation, Interpolation, and Escaping

So we have established that PHP has different data types. In this lesson, I want to focus on strings and something called string concatenation. This is a fancy way of saying that we can join strings together. I'm also going to show you a big difference between single quotes and double quotes. For now, we are going to focus on single quotes. Which is what I prefer to use. It's completely up to you on which one you use. My main language is JavaScript and I always use single quotes. So I've become accustomed to it. But I will show you the difference between the two when it comes to concatenation and something called variable interpolation.