note 17264 added to function.preg-replace

From: Date: Sun, 02 Dec 2001 14:41:36 +0000
Subject: note 17264 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-21529@lists.php.net to get a copy of this message
FUNCTIONS IN PREG: On using functions in the preg_ funtion. For me, this did not work: preg_replace($pattern,"thfunction($0,$4)",$string); but this worked: preg_replace($pattern,"thfunction(\"$0\",\"$4\")",$string); <p>Note the \" before and after each $var in the functioncall. -- http://www.php.net/manual/en/function.preg-replace.php http://master.php.net/manage/user-notes.php?action=edit+17264 http://master.php.net/manage/user-notes.php?action=delete+17264 http://master.php.net/manage/user-notes.php?action=reject+17264

« previous php.notes (#21529) next »