Hi

I have tried to make this work, but I can't figure out the logic, I want to write the function so that names and email addressed like the following are passed to it and it would put the name in a name array and the email address in a email array.

Example:

David Jesse [email protected]
Rob [email protected]
Joe c mark [email protected]

so if anything similar to the above examples is passed to the function , the function would put the name in an array and email address in another array. I tried many loops but non of them worked correctly. Any help is appreciated.


Thank You