Hi all,
If i have the following code:
if ( $row['url'] != "" ) {
echo "<br><br>";
$urls = explode(", ", $row[url]);
for ($i = 0; $i < count($urls); $i++) {
echo "<a href=$urls[$i] target=\"_blank\">$urls[$i]</a><br>";
}
how can i include the parse_url function to dispaly only the 'scheme' and 'host'.
I've tried about 10 different ways but to no avail.
Any ideas?
Cheers,
maccam