I have this loop, where I'm trying to generate an array like this:
array( $file['file_type'] => $file['import_status] )
To do so, I build this foreach loop to access the $file variable, which has the data I wanted to store.
$filesStatusArray = array();
foreach ($filesToImport as $keys => $file) {
$filesStatusArray = $file['import_status'];
}
This way I'm doing, I have only an array with the import_status values.. but I wanted the key to be the file_type... how can I do that?
$filesToImportarray and the desired structure of$fileStatusArray