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);
calculating-converting-prices How to add your own Shopp tag link-to-php-article Image for Shopp WordPress bestfriends article
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 *