codice:
echo "<a href=\"$value\"target=_blank>substr($value,...,....)</a><br>\n";

indicativamente. ma leggiti la documentazione!