PHP array processing, using the above values to put the following subscript
I want to put the above value as the following key, miscellaneous (just use the above field, as below is the value of that effect)
field = "Value so
------Solution--------------------
Http://www.w3school.com.cn/php/func_array_combine.asp
Read the Manual
------Solution--------------------
The picture is too small, not complete yet! I can't see clearly.
The description of the requirement is unclear (the supplementary explanation is not clear)
------Solution--------------------
I presbyopia, can't see how your array to match, can only say the simplest
References:
reference: Array_combine ()
There's more to me than that. I want to take the value of the No. 0 element to do the following key value
------Solution--------------------
$output = Array ();
foreach ($array as $k = = $v) {
If $k ==0 continue;
$output []= array_combine ($array [0], $v);
}