Re: String replacement problems...

From: Date: Tue, 23 Dec 2003 16:11:55 +0000
Subject: Re: String replacement problems...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-173253@lists.php.net to get a copy of this message
From: "John Clegg" <john.clegg@attglobal.net> > I am trying to figure out how to get ereg_replace / preg_replace to > replace a match only once. The fourth parameter to preg_replace() is an integer limit to how many matches you want to allow. So, if you only want 1 replacement to occur, pass 1. :) ---John Holmes...

« previous php.general (#173253) next »