Syntax Question

This has been bothering me for a while now, syntax wrapping variables in {curly brakets}


“SELECT * FROM relationships WHERE (usera={$usera} AND userb={$userb});”

$base = “{$this->title} ({$this->producerName})”;

I’m guessing this is just a way of avoiding concatenations, the equivalent of these examples being:

“SELECT * FROM relationships WHERE (usera=” . $usera . " AND userb=" . $userb . “);”

$base = $this->title . “(” . $this->producerName . “)”;

Are these assumptions correct?

Yes. (more info.)

Great. Thanks for the link to the additional info.