Hi I have a method that returns an array of support tickets. Each support ticket can have many notes so I have a method that returns an array of tickets notes with that ticket id. I want to display the notes alongside the ticket which would mean nesting the get notes inside the foreach loop.
foreach($tickets as $ticket){
//display ticket info
//now get ticket notes using method getNotes()
foreach($ticketnote as $note){
//display note
}
}
Do nested loops like this have performance implications? Is this good practice?
Thanks, Jonesy