Question from the PHP8 test

How to use the null coalescing operator in PHP

Medium

What does this code display?

<?php

echo $a?->b() ?? 'test';
Author: Amine BouchamStatus: Published(Update)Question passed 218 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!