I have set of students as php objects. each students has id, name, department as properties.
I want to get distinct list of departments from the students array.
Is there any build in function or easy methodology without iterating through array of students?
If you are dealing with array list than please check array-column