-1

Can you please suggest me how I can get same results using PHP language with help of array filter and array sort function combine.

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

0 Answers0