<?php
$tags = "unread dev test1 ";
$tagsArr = preg_split("/ +/", $tags, -1, PREG_SPLIT_NO_EMPTY
); foreach ($tagsArr as $value) {
echo $value . ";";
}
?>
PD9waHAKJHRhZ3MgPSAidW5yZWFkIGRldiAgICAgdGVzdDEgICAiOwokdGFnc0FyciA9IHByZWdfc3BsaXQoIi8gKy8iLCAkdGFncywgLTEsIFBSRUdfU1BMSVRfTk9fRU1QVFkpOwpmb3JlYWNoICgkdGFnc0FyciBhcyAkdmFsdWUpIHsKICBlY2hvICR2YWx1ZSAuICI7IjsKfQo/Pg==