Bonsoir à tous,
J'obtiens un array après un dump. Dans cet array j'ai un champ en particulier qui m’intéresse (le champ id) . J'aimerais faire un foreach pour recuperer chaque occurrence id afin de nourrir une table Smiley
Le Dump donne ceci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 array:5 [▼ 0 => Question {#6462 ▼ -id: 1 -theme: "Incendie" -sujet: "Définition d'un IGH :" -propositions: PersistentCollection {#6551 ▶} } 1 => Question {#6553 ▼ -id: 2 -theme: "Incendie" -sujet: "un D.A.I peut être : " -propositions: PersistentCollection {#6554 ▶} } 2 => Question {#6556 ▶} 3 => Question {#6559 ▶} 4 => Question {#6562 ▶}
Partager