これは私が使用しているコードです:
$sql = "SELECT Student_ID
FROM course_student
WHERE Course_ID='$CourseID'";
$Lresult=$DBInstance->CallDB($sql);
print_r($Lresult);
私が得ている結果は次のとおりです。
Array (
[0] => Array ( [Student_ID] => S10812345 [0] => S10812345 )
[1] => Array ( [Student_ID] => S1081299 [0] => S1081299 )
[2] => Array ( [Student_ID] => S1089922 [0] => S1089922 )
)
これは私が望む結果です:
Array ( [0] => S10812345 [1] => S1081299 [2] => S1089922 )