<?php

$a1['cores']=array("vermelho","amerelo","preto");
 
$a2['favoritas']=array("amerelo","preto");
 
$pets = array($a1, $a2);
print_r($pets);
die;