Короткий Isset, а не пустой php 8
isset($var) ?: $var = '';
Chemseddine Tech
isset($var) ?: $var = '';
$var = $var ?? '';
$var = isset($var) ? $var : '';
$var ??= '';
!isset($var) && $var = '';