getTagsByPostId($post['id']); // $postTags is an array, e.g.: [ ['id' => 1, 'name' => 'php'], ... ] $tagsString = implode(', ', array_map(fn($t) => $t['name'], $postTags)); ?>
Title:
Post: = e($post['content']) ?>
Tags (separated by comma):
Publishing date: format('Y-m-d\TH:i'); } ?>
Update