php中的过滤和排序JavaScript等效函数

php中的过滤和排序JavaScript等效函数,php,Php,你能建议我如何使用PHP语言,借助数组过滤器和数组排序函数的组合,获得相同的结果吗 const phases = schedule.phases .filter((f) => f.end_date > now) .sort((a, b) => a.end_date - b.end_date);

你能建议我如何使用PHP语言,借助数组过滤器和数组排序函数的组合,获得相同的结果吗

 const phases = schedule.phases
        .filter((f) => f.end_date > now)
        .sort((a, b) => a.end_date - b.end_date);