I have already fetched both key and value in array.how can I insert that value into another array in the same key position using that fetched key value.
Here my coding
$key=array_search($s_str,$opis_split);
//key value
$value=a;
//array value
$push=array_push($value,$key);
var_dump($push);
To insert at nth key, use
array_splice($push, $n, 0, $value)