On 3 Apr 2001 00:49:05 -0700, Matthew <[EMAIL PROTECTED]>
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");

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to