private function is_multidim_array($myarray) { if (count($myarray) == count($myarray, COUNT_RECURSIVE)) { return false; } else { return true; } }