cancel
Showing results for 
Search instead for 
Did you mean: 

php arrays

7up
Community Veteran
Posts: 15,361
Thanks: 1,176
Fixes: 14
Registered: ‎01-08-2007

php arrays

Is there a way to create an array in php with matching keynames?
Reason I ask is that when you post multiple form fields through a browser you can just call them all fieldname[] and the browser passes them to the server as an array.
Now thats straight forward right? - Here's what I'm trying to do:
I've got a http submission script I've made which can be used for testing form/script submission. I've got get and post fields working and even file fields. All of which are submitted to my script which will then post to the URL in the form via cURL.
What I can't fathom out though is how to recreate an array in php with matching key names so that I can post them onwards in cURL.
Any ideas?
I need a new signature... i'm bored of the old one!