Check if multidimensional array
Posted: 19 Oct 2020, 09:21
How can I check in php if an array is multidimensional or not?
I get a JSON from a third-party application and I parse it in php. But sometimes data in JSON is into a simple array and othertimes they are in multidimensional array.
Is there any way to check if an array is multidimensional or not?
I get a JSON from a third-party application and I parse it in php. But sometimes data in JSON is into a simple array and othertimes they are in multidimensional array.
Is there any way to check if an array is multidimensional or not?