我有一个类似这样的数组:
$array[] = array(
"name" => "sample",
"image" => "sample.jpg",
"header" => "sampleDelights",
"intro_copy" => ""
);
$array[] = array(
"name" => "lwmag",
"image" => "lwmag.jpg",
"header" => "LW Mag",
"intro_copy" => ""
);
我想使用 PHP 根据键“标题”的字母顺序对这个数组进行排序。我尝试了 usort 并搜索了内置函数,但找不到一个(或看过去)。这可能与单个 php 函数?