Isset pendek dan tidak kosong Php 8
isset($var) ?: $var = '';
Chemseddine Tech
isset($var) ?: $var = '';
$var = $var ?? '';
$var = isset($var) ? $var : '';
$var ??= '';
!isset($var) && $var = '';