Hi, can i ask is it possible to insert this in my table

suppose i have this function addgroup($groupname,$groupsize,$grouplevel)

now those parameters in addgroup function are posted in array

how do insert them to my table ?

I tried to use foreach but i did not achieve it gives me syntax error.
Code:
 function  addgroup($groupname,$groupsize,$grouplevel){
     foreach($groupname as $gp,$groupsize as $gpsize, $grouplevel as $gplevel){
 
              Insert statement here ................    
   }  
   
}
I use foreach so that i can extract the values and insert them in my table during loop...This is okay if it's only one parameter but how do I solved that kind of problem with multiple parameter and with and array of values?



Thank you in advance.