这是我的查询:
$query=mysql_query("select * from people order by birth asc");
while($r=mysql_fetch_assoc($query)){
$birth=$r['birth'];
if($r['addmonth']=="2") {
$birth=date("d-m-Y", strtotime("$birth+2 month")); //additional months on date of birth
}
echo"$r[name] $birth";
}
如何使用 $birth ASC 返回的 php 进行排序