Bonjour,
Je fais un print_r d'un tableau qui m'est envoyé d'une fonction et j'obtiens ceci :
Ma question est comment lister ce tableau ou accéder aux éléments ? Je bug sur la syntaxe...
Code : Sélectionner tout - Visualiser dans une fenêtre à part Array ( [0] => stdClass Object ( [id_option] => 1 [options] => 4|5|6 ) [1] => stdClass Object ( [id_option] => 2 [options] => 4|5|6 ) [2] => stdClass Object ( [id_option] => 3 [options] => 4|5|6 ) [3] => stdClass Object ( [id_option] => 4 [options] => 7|8 ) [4] => stdClass Object ( [id_option] => 5 [options] => 1|2|3 ) [5] => stdClass Object ( [id_option] => 6 [options] => 3 ) [6] => stdClass Object ( [id_option] => 7 [options] => 6 ) [7] => stdClass Object ( [id_option] => 8 [options] => 4|5|6 ) [8] => stdClass Object ( [id_option] => 9 [options] => 6 ) [9] => stdClass Object ( [id_option] => 12 [options] => 1|2|3 ) [10] => stdClass Object ( [id_option] => 13 [options] => 1|2|3 ) [11] => stdClass Object ( [id_option] => 14 [options] => 1|2|3 ) [12] => stdClass Object ( [id_option] => 15 [options] => 1|2|3 ) [13] => stdClass Object ( [id_option] => 16 [options] => 1|2|3 ) )
Merci d'avance.
Partager