AquariaXI Posted May 30, 2021 Share Posted May 30, 2021 As the title says, how can i check if multiple arrays exist inside an array or not? Any help is greatly appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/312810-how-to-check-if-multiple-arrays-exist-inside-an-array-or-not/ Share on other sites More sharing options...
Barand Posted May 30, 2021 Share Posted May 30, 2021 foreach() and is_array() might be useful Quote Link to comment https://forums.phpfreaks.com/topic/312810-how-to-check-if-multiple-arrays-exist-inside-an-array-or-not/#findComment-1586894 Share on other sites More sharing options...
Psycho Posted June 1, 2021 Share Posted June 1, 2021 To expand on @Barand's response, how you implement it depends on "how" you want the result to be returned. Are you just wanting a True/False based whether it is a multi-dimensional array, do you want the number of sub-arrays, or what? Quote Link to comment https://forums.phpfreaks.com/topic/312810-how-to-check-if-multiple-arrays-exist-inside-an-array-or-not/#findComment-1586957 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.