On Thu, Oct 24, 2019 at 5:31 PM Kosit Supanyo <webdevxp....@gmail.com>
wrote:

> Hi Bruce
>
> If I understand correctly.
>
> $_SERVER['fname'] !?? $user->setName($_SERVER['fname']);
>
>
> Will return the result of  $user->setName($_SERVER['fname']) if
> $_SERVER['fname']  is set or null if not set. While:
>
> isset($_SERVER['fname']) && $user->setName($_SERVER['fname']);
>
>
> Will return boolean.
>

Yes. Semantically the same, but one is terse and the other is explicit.


>
> Cheers
>
>

Reply via email to