I have an array:
Array
(
[0] => Item
[1] => Repaired Wattles
[2] => Types
[3] => Non-Wire
[4] => Estimated Qty
[5] => 124
[6] => Actual Qty
[7] => 124
[8] => Upload File
[9] => example.jpg
)
I need to add the next value to the previous. I need it to look like this
Array
(
[Item] => Repaired Wattles
[Types] => Non-Wire
[Estimated Qty] => 124
[Actual Qty] => 124
[Upload File] => example.jpg
)
I have something along the lines of this:
$array = array(
foreach($stri as $string) {
$stri[] => $stri[$val]
$val = $string + 1;
);
I know I am definitely wrong. But right here I'm stuck and don't know how to get my code working as I want it to.