<?php $lookup = [ null, "Good", "Bad", "Ugly" ]; foreach (range(0, 5) as $test) { echo $test , ' : ' , ($lookup[$test] ?? $lookup[0]) , "\n"; }
You have javascript disabled. You will not be able to edit any code.