We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00517c0 commit df87480Copy full SHA for df87480
src/helpers.php
@@ -365,12 +365,11 @@ function old_empty_or_null($key, $empty_value = '')
365
366
if (! function_exists('is_multidimensional_array')) {
367
/**
368
- * If any of the items inside a given array is an array, the array is considered multidimensional.
369
- *
370
- * @param array $array
371
- * @return bool
+ * Check if the array is multidimensional.
+ *
+ * If $strict is enabled, the array is considered multidimensional only if all elements of the array are arrays.
372
*/
373
- function is_multidimensional_array(array $array, bool $strict = false)
+ function is_multidimensional_array(array $array, bool $strict = false): bool
374
{
375
foreach ($array as $item) {
376
if($strict) {
0 commit comments