$eng=array();
$text=“Prueba archivo adjunto”;
$eng[‘engagement’]=array(‘type’=>‘NOTE’,‘ownerId’=>16992238,‘active’=>true);
$eng[‘associations’]=array(‘dealIds’=>99396250);
//this is the array of arrays
$eng[‘attachments’]=array(array(‘id’=>5034867180)
$eng[‘metadata’]=array(‘body’=>$text);
$hubspot->engagements()->create($eng[‘engagement’],$eng[‘associations’],$eng[‘metadata’],$eng[‘attachments’]);