Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By Dormilich

Thread: ereg depreciated???

  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Thanked 20 Times in 20 Posts

    ereg depreciated???

    if ereg() is depreciated then what can i replace this with:
    NO Limits!! DHCreationStation.com
    For projects using MediaTypes (MIMETypes) visit E-BAM.net -(updated weekly)

    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  • #2

  • #3
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Behind the Wall
    Thanked 372 Times in 368 Posts
    filter_var($value, FILTER_VALIDATE_EMAIL);
    Strider64 likes this.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • Users who have thanked Dormilich for this post:

    aliqui (05-26-2014)

  • #4
    New Coder
    Join Date
    May 2012
    Oregon, USA
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by Dormilich View Post
    filter_var($value, FILTER_VALIDATE_EMAIL);
    I know I'm late to the party, but I just wanted to elaborate on this last post. When I first saw it, my reaction was, what the hell does that mean. I'm still new to programming, and filter validations are not something that have been taught to me in school thus far. Preg_match is what they have taught us. So, for anyone else who reacts the way I did when seeing the response, here's a link.

    PHP: Validate filters - Manual

    Thanks Dormilich, I learned something today! I will say though, while your answer to his question was dead on, it wasn't clear what you were saying for those of us that haven't ever seen a filter.
    Last edited by aliqui; 05-26-2014 at 07:25 PM.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts