Posted By

f6design on 02/24/11



Versions (?)

Re-index an array

 / Published in: PHP

Re-indexes an array so that the array keys count up from zero. This is useful if you have previously removed some array nodes.

  1. $my_arr = array_values($my_arr);

Report this snippet  

You need to login to post a comment.