php-How to delete the same single array in a two-dimensional array and keep the same key name to ask God to write a function

Source: Internet
Author: User
Keywords PHP arrays
PHP arrays

Array
(
[0] = = Array
(
[Year] = 2013-2014
[Term] = 1
[Course_code] = 00008069
[Course_name] = Coffee World
[Course_nature] = any elective
[Course_attribution] = Humanities Literacy Category
[Credit] = 2.0
[Point] = 4.1
[Grade] = 91
[Minor_tag] = 0
[Makeup_grade] =

[Rebuild_grade] =

[Begin_college] = the Institute of Tourism and Cultural industry
[Remark] =

[Rebuild_tag] = 0
[0] = 77
[1] = 2
)

                    [1] = = Array ([year] = 2013-2014                                    [Term] = 1 [course_code] + 00008069                                    [Course_name] = Coffee World [course_nature] = optional                                    [Course_attribution] = Humanities literacy category [Credit] = 2.0                                    [Point] = 4.1 [Grade] = 91                                      [Minor_tag] = 0 [Makeup_grade] =                                    [Rebuild_grade] [begin_college] = = School of tourism and cultural industry [Remark] [Rebuild_tag] = 0 [0] =&gt ;                    77                [1] = 2) [2] = = Array (                                    [Year] = 2013-2014 [term] = 1                                    [Course_code] = 00008069 [course_name] = Coffee World                                    [Course_nature] = optional elective [course_attribution] = Humanities Literacy Category                                    [Credit] = 2.0 [Point] = 4.1                                    [Grade] = [Minor_tag] = 0 [Makeup_grade] = [Rebuild_grade] = [Begi N_college [Remark] = [rebuild_            Tag] = 0                        [0] = [1] = 2) 

)

As above how to make it into
Array
(
[0] = = Array
(
[Year] = 2013-2014
[Term] = 1
[Course_code] = 00008069
[Course_name] = Coffee World
[Course_nature] = any elective
[Course_attribution] = Humanities Literacy Category
[Credit] = 2.0
[Point] = 4.1
[Grade] = 91
[Minor_tag] = 0
[Makeup_grade] =

[Rebuild_grade] =

[Begin_college] = the Institute of Tourism and Cultural industry
[Remark] =

[Rebuild_tag] = 0
[0] = 77
[1] = 2
)
}

  • 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.