<?php $type = 'image'; $attach = 'url_to_image'; $array = [ $type => $attach ]; var_dump($array);
You have javascript disabled. You will not be able to edit any code.