I am struggling to get my head around concatenation when the examples get harder.
I understand the following example easily
$a = "Hello ";
$b = $a . "World!";
However the following example is confusing me
echo "Name:".$row['name'] .", Owner:".$row['owner'].", Species:".$row['species']."<br/>";
In the above example I don’t understand why and where and the reason behind why we use the “ to complete the string.
Could someone please explain this string to me and the reason why its formatted like this???
I understand that we are outputting Name: and then concatenating the database result to this and then concatenating a comma to the string and then the same again and so on. But I don’t understand where and why we use the “
Cheers for any help.