Re: about preg_replace, please help !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Feb 3, 2008, at 5:00 PM, "LKSunny" <ad@xxxxxxxx> 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);

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux