Php array processing, use the above value to use the following subscript I want to use the above value as the following key, miscellaneous AH & nbsp; (that is, use the above field, as below is the value of that effect) field "value & nbsp; so ------ solution --------------------www.w3school.com. cnphpf php array processing, use the above value to place the following subscript
I want to use the above value as the following key, which is a complex integer (that is, the above field is used as the effect of the following value)
Field = "value ":
------ Solution --------------------
Http://www.w3school.com.cn/php/func_array_combine.asp
Shoushu
------ Solution --------------------
The figure is too small and incomplete! I can't see clearly
The requirement description is not clear (the supplementary instructions are not clear)
------ Solution --------------------
I can't see how your array matches.
Reference:
Reference: array_combine ()
There are more and more I just got on this point... I want to take the value of 0th elements as the subsequent key value.
------ Solution --------------------
$ Output = array ();
Foreach ($ array as $ k => $ v ){
If $ k = 0 continue;
$ Output [] = array_combine ($ array [0], $ v );
}