I'm writing a function buildUserName
that receives three parameters: $firstName, $middleName, $lastName
The function looks like this:
function buildUserName($firstName, $middleName, $lastName) {
echo $firstName + $middleName + $lastName;
}
I call the function like so:
buildUserName("Bob", "Ryan", "Brown");
Expected output:
BobRyanBrown
Actual Output:
0
Why is this? How do I change my code so that I produce the expected output?