Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove array element reset keys

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