<?php $log = (object)[ 'category' => [ (object)['category_name' => 'example1'], (object)['category_name' => 'example2'], (object)['category_name' => 'example3'], ] ]; ?> <td class="<?php echo empty($log->category) ? 'noactioncell ' : ''; ?>text-center align-middle"> <?php echo implode('<br/>', array_column($log->category ?? [], 'category_name')); ?> </td> ---- <?php unset($log); ?> <td class="<?php echo empty($log->category) ? 'noactioncell ' : ''; ?>text-center align-middle"> <?php echo implode('<br/>', array_column($log->category ?? [], 'category_name')); ?> </td>
You have javascript disabled. You will not be able to edit any code.