0

I'm using this line below, which works fine. My question is more for sport and curiosity than for practicality.

$x = $y ?? $x;

(How) could I get this even shorter in PHP? Having the $x in this line twice seems redundant.

DarkBee
  • 16,592
  • 6
  • 46
  • 58

0 Answers0