Bonsoir,
Je cherche à mettre deux photos associées à une collection dans un tableau. Le nom de ma collection serait la clé et pour cette clé il y aurait deux photos. Mais je ne sais pas comment faire.
Merci pour votre aide
collection = array(1=> array('cle','photo1'), 2=>array('cle','photo2'));
$tab_photo = array();
$cle = "ma collection";
$tab_photo[$cle][] = 'photo1';
$tab_photo[$cle][] = 'photo2';
echo '<pre>';
print_r($tab_photo);
echo '</pre>';