print text as hyperlink

i have a script that prints 3 fields froma tab delimited text file
i need to make the links clickable

<? $readfile = file("voos/rooms.txt"); for ($k=0; $k<=count($readfile)-1; $k++) { $fields = split("t",$readfile[$k]); $roomname=$fields[1]; $url=$fields[2]; $count=$fields[3]; print("$roomname $url $count
"); } ?>

allso is it posable to make it clickable but show roomname instead of url ?

HTML’s anchor tag ;)

echo "<a href='".$url."'>".$roomname"</a>";
Sponsor our Newsletter | Privacy Policy | Terms of Service