How do I join multiple arrays in an array when they have the same fields?
Ihavethisfollowingarraybeingreturned,Iwouldliketogroupthemintoasinglearraywheretheyhavethesamevalueforthequery_id,forexample:inthefirst3arraythathasthequery_id=1,theygetintoanarrayonly,getting,array=[[array1],[array2],[array3]]
Q:Allofthesearraysareinsideanotheronethatiscontainedinthevariable$return
SQL is this: SELECT * FROM respostas INNER JOIN perguntas ON respostas.id_pergunta = perguntas.id_pergunta WHERE perguntas.id_questionario = $id_questionario