Combine 2 arrays by matching the same foreign key
问题 I have 2 table, that is a question_table and answer_table the structure is like this : And I have a JSON array that I got from question_table and answer_table using php like this. // to get the question $pertanyaan = "select * from question_table”; $resultPertanyaan = mysqli_query($con, $pertanyaan); while($rowQuery= mysqli_fetch_array($resultPertanyaan)){ $array_question[]= array('id'=>$rowQuery['id’],’question’=>$rowQuery['question']); } and the result is like this array_question : [ { "id"