note 108539 added to function.preg-match-all
| From: | marc | Date: | Fri, 04 May 2012 15:48:08 +0000 |
| Subject: | note 108539 added to function.preg-match-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187477@lists.php.net to get a copy of this message | ||
Better use preg_replace to convert text in a clickable link with tag <a>
$html = preg_replace('"\b(http://\S+)"', '<a
href="$1">$1</a>', $text);
----
Server IP: 69.147.83.197
Probable Submitter: 178.196.253.168
----
Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php
Edit -- https://master.php.net/note/edit/108539
Del: integrated -- https://master.php.net/note/delete/108539/integrated
Del: useless -- https://master.php.net/note/delete/108539/useless
Del: bad code -- https://master.php.net/note/delete/108539/bad+code
Del: spam -- https://master.php.net/note/delete/108539/spam
Del: non-english -- https://master.php.net/note/delete/108539/non-english
Del: in docs -- https://master.php.net/note/delete/108539/in+docs
Del: other reasons-- https://master.php.net/note/delete/108539
Reject -- https://master.php.net/note/reject/108539
Search -- https://master.php.net/manage/user-notes.php