note 26684 added to function.preg-replace

From: Date: Fri, 08 Nov 2002 21:41:56 +0000
Subject: note 26684 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-39200@lists.php.net to get a copy of this message
Be forewarned: preg_replace does NOT like strtotime(). An example would be as follows: preg_replace("/(\d{1,2}:\d{2} [a|p]m)/i", strtotime("$1"), "10-14-2002 4:08 pm"); The thing that doesn't work, is the $1. I've tried everything from $1 to \1 to \\1 to ${1} and so forth. Apperantly, they just won't work. -- http://www.php.net/manual/en/function.preg-replace.php http://master.php.net/manage/user-notes.php?action=edit+26684 http://master.php.net/manage/user-notes.php?action=delete+26684 http://master.php.net/manage/user-notes.php?action=reject+26684

« previous php.notes (#39200) next »