PHP:第三章——数组中的array_values

例:

<?php
header("Content-Type:text/html;charset=utf-8");
//array_value();
//功能:返回数组中所有的值,并给其建立数字索引。
$arr=array('d'=>'中','1'=>'美','日');
$b=array_values($arr);
print_r($b);
//输出:Array([0]=>中[1]=>美[2]=>日)
?>
原文地址:https://www.cnblogs.com/yiweiyihang/p/7144048.html