Something like this should work
foreach ($csvData as $line) {
vprintf(
'<article><h3>%s</h3><h6>Posted on %s</h6><p>%s</p>/article>',
explode(',', $line)
);
}
Edit based on @Gordon comment, using fgetcsv
while (($line = fgetcsv($handle, 1000, ",")) !== FALSE) {
vprintf(
'<article><h3>%s</h3><h6>Posted on %s</h6><p>%s</p></article>',
$line
);
}