FURQAN Posted April 13, 2010 Share Posted April 13, 2010 hi there my name is furqan ahmed i am actually woking on php validation and usinf a builtin function ereg() but the problem is that i am facing an error which i am unable to detect it and solve it.The error says that Deprecated: Function ereg_replace() is deprecated in D:\wamp\www\proxy\proxy.php on line 8 can any body tell em what can be its alternative and how to solve this thanxxx i shall be very thankfull to you for this act of kindness Quote Link to comment https://forums.phpfreaks.com/topic/198348-function-ereg-in-php/ Share on other sites More sharing options...
trq Posted April 13, 2010 Share Posted April 13, 2010 The function is depricated, you should be using preg_match instead. Quote Link to comment https://forums.phpfreaks.com/topic/198348-function-ereg-in-php/#findComment-1040740 Share on other sites More sharing options...
oni-kun Posted April 13, 2010 Share Posted April 13, 2010 The function ereg has been deprecated since PHP version 5.3.0 in favour of PERL compatable regular expressions. An example difference is this: eregi('expression'); preg_match('/Expression/i'); The documentation for the current function is here: preg_match Quote Link to comment https://forums.phpfreaks.com/topic/198348-function-ereg-in-php/#findComment-1040742 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.