I have no environment to test, but you could try this:
foreach ($menuitem as $key => $value) {
list($foo[$key], $bar[$key]) = split(",", $value);
}
Pardon me if there are syntax errors -- haven't coded in a while 🙂 -- but you should get the general idea. After you get your $foo and $bar arrays populated, you can echo them out however you see fit.
A word of advice for future posts: be more descriptive in your subject. "help pls" doesn't tell us what your issue is. A better subject would have been "help getting values out of an array."