Answers for "php move array index"

PHP
0

rearrange array index php

$array = array_values($input);
Posted by: Guest on September-27-2020
0

php move index of a value to first position in array

//appending $new in our array 
array_unshift($arr, $new);
//now make it unique.
$final = array_unique($arr);
Posted by: Guest on May-20-2021

Browse Popular Code Answers by Language