link-to-php-article

Function ereg_replace() is deprecated

PHP Warning: Function ereg_replace() is deprecated. Now what?

This PHP-warning means the function still works but is replaced by a new one.
Eventually, the older function will disappear and therefor stop working.

ereg_replace() has been replaced by preg_replace()
The syntax changed a little too.

ereg_replace('[^a-z]+', "some text or nothing", $someString);

changed to

preg_replace('/[^a-z]+/', "some text or nothing", $someString);
never-changes-a-winning-team You need more than one person to receive order notifications. How to add your own Shopp tag Image for Shopp WordPress bestfriends article shopp-logo
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *