EDIT I have an associative array :
$formation_domains_info_array = array(
'electrotechnique-electronique' => array(
'title' => 'ÉLECTROTECHNIQUE - ÉLECTRONIQUE',
'flechage' => array(212, 213, 355),
),
'informatique-infographie-cao-dao' => array(
'title' => 'INFORMATIQUE - INFOGRAPHIE - CAO/DAO',
'flechage' => array(217, 218),
),
'metiers-du-verre-horlogerie' => array(
'title' => 'MÉTIERS DU VERRE - HORLOGERIE',
'flechage' => array(215, 224),
)
);
I wanted to iterate through it this way :
while ($index < count($fdomains_array)) {
echo $formation_domains_info_array[$index++] .'<br/>';
$index++;
}
I am quite surprised to get "Undefined offset 0
" as an error message.
Is it not possible to iterate that way through associative array in PHP?
Thanks in advance for your explanations.