PHP删除父数组标签

原始阵列

Array
(
  [0] => Array
    (
        [day] => sun
        [start_time1] => 00:00:01
        [end_time1] => 08:59:59
        [start_time2] => 13:15:00
        [end_time2] => 14:00:00
        [start_time3] => 17:00:00
        [end_time3] => 23:59:59
    )

  [1] => Array
    (
        [day] => mon
        [start_time1] => 00:00:01
        [end_time1] => 08:59:59
        [start_time2] => 13:15:00
        [end_time2] => 14:00:00
        [start_time3] => 17:00:00
        [end_time3] => 23:59:59
    )

  [2] => Array
    (
        [day] => tue
        [start_time1] => 00:00:01
        [end_time1] => 08:59:59
        [start_time2] => 13:15:00
        [end_time2] => 14:00:00
        [start_time3] => 17:00:00
        [end_time3] => 23:59:59
    )
)

所需阵列

Array
(

    (
        [day] => sun
        [start_time1] => 00:00:01
        [end_time1] => 08:59:59
        [start_time2] => 13:15:00
        [end_time2] => 14:00:00
        [start_time3] => 17:00:00
        [end_time3] => 23:59:59
    )

    (
        [day] => mon
        [start_time1] => 00:00:01
        [end_time1] => 08:59:59
        [start_time2] => 13:15:00
        [end_time2] => 14:00:00
        [start_time3] => 17:00:00
        [end_time3] => 23:59:59
    )

    (
        [day] => tue
        [start_time1] => 00:00:01
        [end_time1] => 08:59:59
        [start_time2] => 13:15:00
        [end_time2] => 14:00:00
        [start_time3] => 17:00:00
        [end_time3] => 23:59:59
    )
)
评论