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

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

WBOY
Release: 2016-06-13 13:23:02
Original
851 people have browsed it

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

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

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

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