I have an array like:
$columns = [
'id'=>'Id',
'status'=>'Status',
'created_at'=>'Created At'
];
and I want to replace key and value 'status'=>'Status'
with 'payment_status'=>'Payment status'
;
I know that I can delete element by key using unset($columns['status'])
and add the new element to the end or to the beginning of the array. But I want to keep elements order so the new element should be added after `id'.