note 21383 deleted from function.preg-replace by didou

From: Date: Sat, 17 May 2003 16:32:28 +0000
Subject: note 21383 deleted from function.preg-replace by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48175@lists.php.net to get a copy of this message
Note Submitter: cluebie I have discovered that my previous example is overly verbose. This well work withouth the extra function call: print preg_replace("/\[desc:([ \w]+)\]/e","\$description['\\1']",$text); I believe someone else has already mentioned this solution. I must have typoed when testing.

« previous php.notes (#48175) next »