PHP Convert Array Keys

前端 未结 4 1862
误落风尘
误落风尘 2021-02-03 23:44

Had a hard time wording this in google so I figure ill ask here.

I have an array like such:

Array ( [a] => \'a\' [b] => \'b\' [c] => \'c\' )
         


        
4条回答
  •  清歌不尽
    2021-02-04 00:14

    $my_array = array( [a] => 'a' [b] => 'b' [c] => 'c' )
    $my_new_array = array_values($my_array);
    

提交回复
热议问题