Built-in PHP function to reset the indexes of an array?

前端 未结 4 736
悲哀的现实
悲哀的现实 2021-01-13 04:50

Example:

$arr = array(1 => \'Foo\', 5 => \'Bar\', 6 => \'Foobar\');
/*... do some function so $arr now equals:
    array(0 => \'Foo\', 1 => \'         


        
4条回答
提交回复
热议问题