Share icon

Sometimes we need to slice the array for certain values using program a code and at that time key of array is also unset.

If you faced the same then you can use these options

$reindexed_arr = array_values($arr);

you can also try these function in PHP

Add new comment

Restricted HTML