輸入:排序陣列,按名稱
$sql = array(
array("id"=>"47", "name"=>"Jason", "device"=>"idevice"),
array("id"=>"49", "name"=>"uniKornn", "device"=>"idevice"),
array("id"=>"50", "name"=>"jacob", "device"=>"idevice")
)
輸出:
$sql = array(
array("id"=>"50", "name"=>"jacob", "device"=>"idevice"),
array("id"=>"47", "name"=>"Jason", "device"=>"idevice"),
array("id"=>"49", "name"=>"uniKornn", "device"=>"idevice")
)
我想設置數組$ SQL的順序,按名稱,和不區分大小寫的。
你試過什麼? – Crozin
我已經嘗試過使用'sort($ sql)',但那不起作用... – 131
ksort($ sql) –