Hey everybody.
Trying to figure out how to complete a certain task here, and I am pretty sure it can be done via php. Not sure how to start implementing it though, so any suggestions would be hugely appreciated.
What I wanna accomplish is, as follows:
Out of a list of email addresses, I would like php to pick ONE RANDOM email address out of every domain name, listed in there, for instance:
dave@yahoo.com
john@yahoo.com
michael@hotmail.com
jason@hotmail.com
etc.
Just one random email addy with a certain domain name ( namely, the part after the @ sign ). The ending result out of the example, listed above, ought to be:
dave@yahoo.com
jason@hotmail.com
That's it, pretty much. Nothing more, nothing less.
Open to suggestions on how to start this thing!