acabo de hacer este codigo :D
Código:
<form name="form1" method="post" action="#">
<input name="texto" type="text" id="campo">
<input type="submit" name="Submit" value="Submit">
</form>
<?php
$texto=@$_POST['texto'];
if($texto){
$conjunto=array();
$conjunto = explode (" ", $texto);
$ta=sizeof($conjunto);
for($co=0;$co<$ta;$co++){
if(strstr($conjunto[$co],"www.")){
$data="<a href='http://".$conjunto[$co]."'>".$conjunto[$co]."</a>";
$conjunto[$co]=$data;
}
}
$cosa=implode(" ",$conjunto);
echo $cosa;
}
?>