Skip to content

Instantly share code, notes, and snippets.

@danilowm
Created May 18, 2012 15:16
Show Gist options
  • Save danilowm/2725807 to your computer and use it in GitHub Desktop.
Save danilowm/2725807 to your computer and use it in GitHub Desktop.
Verificar se um array é multidimensional
<?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