Skip to content
Advertisement

Structure array into multi dimensional array

So I have the following variable $authenticated_users which returns:

JavaScript

So I have the following method:

JavaScript

When I echo $config I get the following results:

JavaScript

Here is what I’m attempting to do:

JavaScript

Does anyone know what I can do to improve my code?

Advertisement

Answer

you need to change your logic

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement