Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php sort array remove keys

$arr = array(1, 2, 3);
unset($arr[0]);
$arr = array_values($arr);

print_r($arr);
//Array ( [0] => 2 [1] => 3 ) 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #sort #array #remove #keys
ADD COMMENT
Topic
Name
6+6 =