Код: Выделить всё
$result = null;
$result ||= check1();
$result ||= check2();
$result ||= "default";
Подробнее здесь: https://stackoverflow.com/questions/114 ... e-operator
Код: Выделить всё
$result = null;
$result ||= check1();
$result ||= check2();
$result ||= "default";