note 61330 added to function.preg-replace
| From: | php-general at lists dot php dot net | Date: | Tue, 31 Jan 2006 18:23:29 +0000 |
| Subject: | note 61330 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102778@lists.php.net to get a copy of this message | ||
Uh-oh. When I looked at the text in the preview, I had to double the number of backslashes to make
it look right.
I'll try again with my original text:
$full_text = preg_replace('/\[p=(\d+)\]/e',
"\"<a href=\\\"./test.php?person=$1\\\">\"
.get_name($1).\"</a>\"",
$short_text);
I hope that it comes out correctly this time :-)
----
Server IP: 64.246.30.37
Probable Submitter: 62.16.183.238
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61330
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61330&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61330&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61330&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61330&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61330&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61330&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61330&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61330&report=yes
Search -- http://master.php.net/manage/user-notes.php