Hi all I have a question with a obsolete/deprecated function.
I need to change ereg
to preg_match
the code with the function is this: http://pastebin.com/jMBkJSEr
I tired to change ereg
to preg_match
but it doesn’t work by just changing the name of the function.
3
Answers
You need to change :
to
There are also many other ereg_replace calls that you might find:
You should change these to
Hope this is what you want
EDIT :
There is only one change:
to
Same for “ereg_replace”
to
Hope you get it.
EDIT:
Also the split is depreciated . You should change:
to
Hope these things helps you
in addition to those outlined above, there is also eregi that must be updated, which is just a case insensitive version of ereg. So, replace it with the preg_match and the ‘i’ switch to make it case insensitive.
Change eregi
to preg_match (note the “i” after the second /)
The new version of oscommerce has changed
eregi
topreg_match