Re: about preg_replace, please help !
| From: | LKSunny | Date: | Mon, 04 Feb 2008 05:04:49 +0000 |
| Subject: | Re: about preg_replace, please help ! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268618@lists.php.net to get a copy of this message | ||
this i know.....
but i need use preg_replace.....
any body can help me, thank you very much !!
"Casey" <heavyccasey@gmail.com>
???????:2C658DD6-6A3D-47DE-96F7-06E9D9CB148F@gmail.com...
> On Feb 3, 2008, at 5:00 PM, "LKSunny" <ad@pc86.com> wrote:
>
>> <?
>> $txt = <<<eof
>> aaaaaaaaa
>> aaaaaaaaa
>> aaaaaaaaa
>>
>> bbbbbbbb
>> bbbbbbbb
>>
>> bbbbbbbb
>> eof;
>>
>> //i just want replace "start to first \r\n\r\n"
>> //how can i do ?
>> //i want out put
>> /*
>> bbbbbbbb
>> bbbbbbbb
>>
>> bbbbbbbb
>> */
>> print preg_replace("What's is this ?", "", $txt);
>>
>> //Thank You !!
>> ?>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> list(, $result) = explode("\r\n\r\n", $string, 2);