我有mysql查询
$sql="select * from employee where address='Mumbai' ";
此后,我想通过使用while循环使用array_push推送键和值
$row=array();
while ($r = mysqli_fetch_assoc($sql)) {
//code to push every value with its key to $row using array_push
}
如何在Php中使用array_push将具有键的每个值推入$ row。