Created
May 18, 2012 15:16
-
-
Save danilowm/2725807 to your computer and use it in GitHub Desktop.
Verificar se um array é multidimensional
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (count($array) == count($array, COUNT_RECURSIVE)) { | |
echo 'array is not multidimensional'; | |
} | |
else { | |
echo 'array is multidimensional'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment