Question from the PHP8 test

Use the match expression in PHP to print a string.

Medium

What will this code display?

<?php

echo match(false) {
    0 => "hello",
    true => "world",
    default => 'no values',
};
Author: W3D TeamStatus: PublishedQuestion passed 1075 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!