Question from the PHP7 test

Write a PHP code that displays the full name of a person.

Medium

What will this code display?

<?php

$firstname= 'Bob';

$fullname=($firstname ?? 'John'). ''.($lastname ?? 'Doe');

echo $fullname;
Author: Julien BreuxStatus: PublishedQuestion passed 1109 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!