如何样删除数组中的中间元素与末尾元素

WBOY
Release: 2016-06-13 12:40:32
Original
913 people have browsed it

怎么样删除数组中的中间元素与末尾元素?
有以下数组: 我想这样操作,删除前两个数组中下标为1,2的数组。然后也要删除前两个数组中的末尾元素。直到变成与CCC有相同下标的数组。不知道怎么操作???


0=>AAA
1=>0.00
2=>0.00
3=>15.97
4=>14.52
5=>16.25
6=>-9.94
7=>-0.77
0=>BBB
1=>0.00
2=>0.00
3=>9.58
4=>9.42
5=>9.47
6=>-0.11
7=>-0.56
0=>CCC
1=>19.13
2=>13.01
3=>19.04
4=>-9.13

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template