Re: Case insensitive str_replace

From: Date: Tue, 03 Apr 2001 16:02:23 +0000
Subject: Re: Case insensitive str_replace
References: 1 2 3  Groups: php.windows 
Request: Send a blank email to php-windows+get-6463@lists.php.net to get a copy of this message
On 3 Apr 2001 00:49:05 -0700, Matthew <matthew.ralston@haltoncollege.ac.uk> wrote: >I'm not sure where to put the /i. >If I had code like: > >$print preg_replace("test", "this is a test", "test TEST tEsT >TEst") > >where in that code would i put the modifier? I don't think that code would work as it is without putting the pattern in delimiters, at which point it becomes more obvious where modifiers go: print preg_replace("/test/i", "this is a test", "test TEST tEsT TEst");

« previous php.windows (#6463) next »