Eregi() Deprecated php help?

Yes ereg family functions have been deprecated you need to use preg family functions instead. In your case, you should use preg_match instead.

Yes ereg family functions have been deprecated, you need to use preg family functions instead. In your case, you should use preg_match instead. That piece of code is equivalent to: if(empty($this->email) ||!

Preg_match('~^a-zA-Z0-9. _-+@a-zA-Z0-9. _-+\.

A-zA-Z{2,4}$~i', $this->email)) It can also be compacted to: if(empty($this->email) ||! Preg_match('~^\w. -+@\w.

-+\. A-zA-Z{2,4}$~i', $this->email)).

As @Sarfraz said ereg_* functions are deprecated and you should use preg_* instead. However in this case you shouldn't use regular expressions at all. There is function called filter_var() that allows you to validate some popular data formats (emails, URLs etc.) if (empty($this->email) || false == filter_var($this->email, FILTER_VALIDATE_EMAIL)) { // Empty or not valid email }.

Notabede email is an URL. ;) – Crozin Aug 22 '10 at 18:00.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions