📅  最后修改于: 2022-03-11 14:53:56.332000             🧑  作者: Mango
$sql = "SELECT Lastname, Age FROM Persons ORDER BY Lastname";
$result = mysqli_query($con, $sql);
/*MYSQLI_ASSOC
MYSQLI_NUM (this is default)
MYSQLI_BOTH
*/
// Fetch all
mysqli_fetch_all($result, MYSQLI_ASSOC);