Home  >  Article  >  Backend Development  >  关于数组上边赋值有关问题

关于数组上边赋值有关问题

WBOY
WBOYOriginal
2016-06-13 13:23:02726browse

关于数组下边赋值问题
Array
(
  [5] => 60
  [6] => 70
  [7] => 90
  [8] => 70
)

这个数组..我想把它的下边重复赋值为0,1,2...这个怎么操作..

------解决方案--------------------
array_values($arr);

Statement:
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