📜  在 php 代码示例中按键值对数组进行排序

📅  最后修改于: 2022-03-11 14:54:18.850000             🧑  作者: Mango

代码示例6
function cmp($a, $b)
    {
        return strcmp($a->display_name, $b->display_name);
    }

    usort($blogusers, "cmp");

    foreach ($blogusers as $bloguser)
    {
        ...