You are here

public static function WebformArrayHelper::isMultidimensional in Webform 6.x

Determine if an array is multidimensional.

Parameters

array $array: An array.

Return value

bool TRUE if array is multidimensional.

See also

https://stackoverflow.com/questions/145337/checking-if-array-is-multidim...

1 call to WebformArrayHelper::isMultidimensional()
WebformTranslationConfigManager::buildConfigWebformFormElements in src/WebformTranslationConfigManager.php
Build config webform form elements.

File

src/Utility/WebformArrayHelper.php, line 99

Class

WebformArrayHelper
Provides helper to operate on arrays.

Namespace

Drupal\webform\Utility

Code

public static function isMultidimensional(array $array) {
  return count($array) !== count($array, COUNT_RECURSIVE);
}