i need a snippit that can find if users have aol emails from a list
eg:

if ($email == ends in aol.com or aol.co.uk){
do whatever
}

so i need to check everything after the @ sign in email addresses

cheers
J

    try using implode function? depends on where the emails are stored. if they are in text file or something just read 1 line at a time into an array element then use implode.

    www.php.net search for implode on functionlist search 1 inch down from the top right of the page

      function isAolAddress ($emailaddress) {
        if (strpos("@aol.com", $emailaddress) === true) {
          return true;
        } else {
          return false;
        }
      }
      

      so for every email address, just pass it through the isAolAddress() function to see if its an AOL address.

        Originally posted by parawizard
        try using implode function? depends on where the emails are stored. if they are in text file or something just read 1 line at a time into an array element then use implode.

        thanks...but dont you mean explode?

        $f = explode("@", $list);
        for each bla bla bla....
        if ($f[1] == "aol.com"){
        do whatever
        }

        ill try it out..!!
        J

          Originally posted by junglejim
          thanks...but dont you mean explode?

          $f = explode("@", $list);
          for each bla bla bla....
          if ($f[1] == "aol.com"){
          do whatever
          }

          ill try it out..!!
          J

          errrrrr........ yes 🙂

          sorry it was a late post 😉

            Write a Reply...