<?php
$str = "it, is, a, test";
echo "<small>";
foreach($res as $result){
echo "<a href='#'>" . $result . "</a>";
}
// your code goes here
PD9waHAKCiRzdHIgPSAiaXQsIGlzLCBhLCB0ZXN0IjsKCiRyZXMgPSBleHBsb2RlKCAnLCAnLCAkc3RyICk7CgplY2hvICI8c21hbGw+IjsKZm9yZWFjaCgkcmVzIGFzICRyZXN1bHQpewoJZWNobyAiPGEgaHJlZj0nIyc+IiAuICRyZXN1bHQgLiAiPC9hPiI7CgoJfQoKLy8geW91ciBjb2RlIGdvZXMgaGVyZQ==