ok so what i am trying to do is loop through the POST data to create an array of the data to be used later. this is what i have but when i use is_array it returns not an array. i swear it was working at one point but now im not so sure.
ok so i was taking a look at the manual you sent me to and i believe that i have a better understanding with the array brackets. and i am able to make array's but i have one problem. within the array it is creating brackets around the key like:
[tommy] => 12,
[bob] => 13
instead of like:
tommy => 12,
bob => 13
i do use the global keyword it is just that i didnt put it up there. also i dont want to do it within the function incase i need to do some custom stuff that needs or changes any values within the array before sending it to the DB function
The brackets you are seeing from the print_r output are just to indicate that those strings are keys. You can pass the $_POST array into your function and anything you do to it in the function won't affect it outside the function.