CODE :
// Paramètre -> $Chaine : Votre chaine contenant un lien ...
// Exemple -> httpReplace('Viens faire un tour sur http://www.pckult.net');
function httpReplace($Chaine){
return = preg_replace( '/(http|ftp)+(s)?:(\/\/)((\w|\.)+)(\/)?(\S+)?/i', '[a xhref="/\0"]\4[/]>', $Chaine);
}
Ajouter aux favoris
Bookmarker
Envoyer par mail
Vu: 776






