[PHP] Working with 3 arrays

2005-03-10 Thread Robert Sossomon
I need to work with 3 different arrays where I get the value of the same key for all 3 (probably a term for this one). The three arrays are: field[] type[] char[] and each will be assigned via another form. What will happen is at the end of the form I want to be able to pull field[0] type[0]

Re: [PHP] Working with 3 arrays

2005-03-10 Thread Steve Slater
If you are certain that your keys are the same for each array, you can reference them by using the key as in foreach ($fields as $key=$value) { $a = $fields[$key]; $b = $types[$key]; etc... } Steve I need to work with 3 different arrays where I get the value of the same key for all 3