PHP array processing, use the following values to put the above superscript

Source: Internet
Author: User
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);
}
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.