note 64049 deleted from function.ereg-replace by nlopess

From: Date: Thu, 06 Apr 2006 16:40:31 +0000
Subject: note 64049 deleted from function.ereg-replace by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-107454@lists.php.net to get a copy of this message
Note Submitter: James ---- Hi everybody, I have a little problem. I have smoething like this: ereg_replace("\[(.+)\]","$array[\\1]", $text); I will find some number, for example [1] and I want to replace it with value of variable $array[1], but this doesn´t work. Does anybody know how to do this?

« previous php.notes (#107454) next »