What record looks more aesthetically pleasing if the goal is a beautiful code?
Such
$user = $this->userName . implode("-", $this->birthDate);
Such
$user = $this->userName; $user .= implode("-", $this->birthDate);
Or so
$user = $this->userName; $birth = implode("-", $this->birthDate); $user .= $birth;
The example is written from the bald, so do not judge strictly. In fact, Iβm wondering only one thing - is it permissible to push functions into concatenation, or is it clearer when only variables are "concatenated". I myself tend to the first option.