Skip to content
Advertisement

Tag: ksort

sorting a column in a PHP array

I am trying to sort by a column(s) in the following data structure that I have built like this: This is a var_dump of the $entity_list data structure. How do I use asort() or ksort() on this structure? I think i should be using ksort(), as it works on a key. I have tried ksort($entity_list,’student_last_name’), or asort($entity_list,’current_grade’) for example. Thank

Advertisement