OR.
>
>--
>Gerardo S. Rojas
>mailto: [EMAIL PROTECTED]
>
>
>-Original Message-
>From: Ignatius Reilly [mailto:[EMAIL PROTECTED]
>Sent: Thursday, January 15, 2004 11:36 AM
>To: Gerardo Rojas; [EMAIL PROTECTED]
>Subject: Re: [PHP-WIN] Regular expressions
>
, January 15, 2004 11:36 AM
To: Gerardo Rojas; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Regular expressions
What do you want to replace a match with?
_
- Original Message -
From: "Gerardo Rojas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent
What do you want to replace a match with?
_
- Original Message -
From: "Gerardo Rojas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 15, 2004 18:16
Subject: [PHP-WIN] Regular expressions
I have 2 regular expressions that work correctly. How
Hi,
The replaced string is returned by the function. This works.
$str = "test test2";
$str2 = preg_replace('/ /', ',', $str);
If your are doing simple replacements like this you should use
str_replace() it's much faster!
$str = "test test2";
$str2 = str_replace(' ', ',', $str);
- Frank
> How d