note 26684 deleted from function.preg-replace by jmcastagnetto

From: Date: Fri, 29 Nov 2002 02:17:35 +0000
Subject: note 26684 deleted from function.preg-replace by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40096@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.

« previous php.notes (#40096) next »