ummm... not quite. You should have a different name for the array. The array is constructed "key => value". When you are assigning these, you don’t usually want the key to be a variable (I think this would fall into the area of "
variable variables", which always gives me a headache), while the value often will be (for example if taken from a database). So it would be
$myarray = array (
'preview' => $dbResults['preview'],
'filetype' => $dbResults['filetype'],
etc.
);
So you would be able to say $output[’preview’] and $output[’filetype’] in order to get the values.