deprecated function's usage <p>Why are certain functions in PHP (such as <a href="http://www.php.net/eregi" rel="nofollow noreferrer"><code>eregi</code></a>) deprecated? I normally use <code>eregi</code> for email validation.</p> <p>Should I use it, or is there another function that can be used in its place?</p>