POP3 - PHP Arrays - Please Help

Hi Experts,

   i realy realy need some help with arrays, here is my aim:

   "i need to make an application that can read from POP3, it needs to first get the mail from my pop3 server then make it into an array so that it can be converted to XML and read by my program"

 i need to make a php script that can make something like this:


$MsgNumber = array("1", "2");
$From = array("someone@domain.com", "someone@domain.com");
$Message = array("Hi", "Hi Again");

print "<dataSet>";
        while ($i < $numReturn) {
                print "<data>";
                print "<MsgNumber>".$MsgNumber[$i]."</MsgNumber>";
                print "<From>".$From[$i]."</From>";
                print "<Message>".$Message[$i]."</Message>";
                print "</data>";
print "</dataSet>";


so that the end result is an array that can be read by my application but i need a class to first make the array dataset, can anybody help me please? i have no idea about this...

Thanks in Advance,
Kristan Callender
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

XGENTECHAuthor Commented:
i am also trying to find a pop3 class that will easily enable this to be done, but so far no luck

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.