3 ms·You can do the same in PHP, but again, not as nice to read: ['abc' => 2, 'def' => 3][$x] ?? 'default';by francislavoie 5y agoYou can do the same in PHP, but again, not as nice to read: ['abc' => 2, 'def' => 3][$x] ?? 'default';