Skip to content

Instantly share code, notes, and snippets.

@jordanthomas
Created April 5, 2011 15:21
Show Gist options
  • Save jordanthomas/903819 to your computer and use it in GitHub Desktop.
Save jordanthomas/903819 to your computer and use it in GitHub Desktop.
Determines if an input array is multidimensional.
public function is_multi(array $array)
{
foreach ($array as $key => $value)
{
if (is_array($value))
return TRUE;
}
return FALSE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment