fork download
  1. <?php
  2.  
  3. $arr = [
  4. 'one' => 'one',
  5. 'two' => 'two',
  6. // 'three' => 'three'
  7. ];
  8.  
  9. $val = $arr['three'] ?? 'n/a';
  10. echo "val: $val";
Success #stdin #stdout 0.02s 26032KB
stdin
Standard input is empty
stdout
val: n/a