I have a comma separated string, which consists of a list of tags and want to convert it to array to get a link for every tag.
Example:
$string = \'h
Try this
$tagss = trim($tagss); return substr($tagss, 0 , strlen($tagss)-1);