I am a bit curious as to why the following throws a warning.
$obj->data = array(...); // note there are values stored (size 607)
var_dump(sizeof($obj->data)); // 607
array_multisort(
array_column($obj->data , 'col1'), SORT_ASC,
array_column($obj->data , 'col2'), SORT_ASC,
array_column($obj->data , 'col3'), SORT_ASC,
$obj->data
);
var_dump(sizeof($obj->data)); // 607
The warning I receive states
Warning: array_multisort(): Array sizes are inconsistent
Can someone give me a bit more information than the warning?
607array_column()calls.