Przypisz do tablicy tablicy wartości php
$keys = array('username', 'password', 'email');
$values = array('someusername', 'somepassword', 'someemail');
$data = array_combine($keys, $values);
Cautious Curlew