У меня есть массив, я хочу вставить значение ключа 'id' в другой ключ ("created_by"), чтобы значения были одинаковыми, как мне это сделать?
$data = [
'id' => $this->uuid->v4(),
'fullname' => $this->input->post('fullname'),
'email' => $this->input->post('email'),
'password' => password_hash($this->input->post('password'), PASSWORD_DEFAULT)),
'created_by' => /* The value of key 'id' here*/,
'created_at => time(),
];
Подробнее здесь: https://stackoverflow.com/questions/785 ... -array-php