note 52277 added to function.preg-replace

From: Date: Tue, 26 Apr 2005 21:40:06 +0000
Subject: note 52277 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-88593@lists.php.net to get a copy of this message
to spam at barad-dur dot nl and ur highlight function first of all: it doesn´t work second: i dont get it my highlight function just looks like this and works perfect... function highlight($haystack,$needle) { $haystack=preg_replace("/($needle)/i","<span style='font-weight:bold'>\${1}</span>",$haystack); return $haystack; } ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52277 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52277&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52277&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52277&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52277&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52277&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52277&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88593) next »