php move index of a value to first position in array

113

//appending $new in our array 
array_unshift($arr, $new);
//now make it unique.
$final = array_unique($arr);

Comments

Submit
0 Comments