PHP Convert Array Keys

前端 未结 4 1863
误落风尘
误落风尘 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:34

    Try array_values

    $arrayWithNumericKeys = array_values($arrayWithRegularKeys);
    

提交回复
热议问题