For a single dimension array, my workaround is to concat values into a string with a seperator and then use the split function.
For a multi dimensions array, I couldn’t find a solution.
I’m amazed at how complex things are made easier. However mundane one can be a pain in the a**, spending hours trying to find a php one liner equivalent. Anyway the tool is upgraded regularly so I’m still shortening my dev time with each release. Very greatful for that !