ereg_replace to preg_replace translation

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

 



Hi all,

I see that from PHP 5.3.0 ereg_replace() function is deprecated and throws a warning.
I would like to use the preg_replace() function as an alternative of ereg_replace() function but... can't undestand the "\n#[^\n]*\n" expression.

$sql = ereg_replace("\n#[^\n]*\n", "", $sql);

Any help for tranlation or alternative ?
Thanks

--
m a r k u s

--
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