If you know a plugin that already does it, you can look at its code to see how the author did it.
Basically, you loop through all the items in the array and create the menu item based the iteration of the array.
PHP Code:
for( new i = 0; i < sizeof(test[]); i++ )
{
menu_additem(menu, test[i], "", 0);
}
__________________