Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not supports multi-level groupings #10

Open
jayvendor opened this issue Jul 7, 2021 · 1 comment
Open

not supports multi-level groupings #10

jayvendor opened this issue Jul 7, 2021 · 1 comment

Comments

@jayvendor
Copy link

jayvendor commented Jul 7, 2021

how to pass multi level groupings
array_group_by($records, 'state', 'city')
giving "Message: call_user_func_array() expects parameter 1 to be a valid callback, function 'array_group_by' not found or invalid function name" error

@tbreuss
Copy link

tbreuss commented Oct 23, 2024

how to pass multi level groupings array_group_by($records, 'state', 'city') giving "Message: call_user_func_array() expects parameter 1 to be a valid callback, function 'array_group_by' not found or invalid function name" error

Be careful if you use the function in a namespace by copying and pasting the function into your own code. Then the namespace must be added when calling call_user_func_array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants