Assigning values from a numerical array to an associative array
This has been answered here: https://stackoverflow.com/a/3000342/561731 

array_combine

In your case:

$this-&gt;userdata = array_combine(['company','tx_trouserextend_contactperson',...], $data);


Can also just have anarray of $keys to match to your data and then use array_combine