Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php reindex array after unset

unset($foo[0]); // remove item at index 0
$foo2 = array_values($foo); // 'reindex' array
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #reindex #array #unset
ADD COMMENT
Topic
Name
5+3 =