📜  php order array by specific key - PHP 代码示例

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

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

    usort($blogusers, "cmp");

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