Hyvor Developer
  Home   Download   Copy
Code
<?php
$a = null;
$b = null;
$c = 5;
$d = 3;

var_dump($a ?? $b ?? $c ?? $d); // outputs 5
Result