This should be a day 1 question, and I'm almost embarrassed to ask! LOL
Let's say I have:
$a = "apple";
$b = "banana";
Now, I want to say:
$a .= " is a fruit"; // apple is a fruit
$b .= " is a fruit"; // banana is a fruit
Is there a way to combine this in to one statement, so that I don't have to put " is a fruit" twice? Without creating a third variable, I mean.
I know that this doesn't work, but to give you an idea of what I mean, something like:
$a .= $b .= " is a fruit";
(Note for other readers, this doesn't work because it appends $b to $a first, making $a = "applebanana is a fruit")