Skip to content

Commit df87480

Browse files
committed
doc block
1 parent 00517c0 commit df87480

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/helpers.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,11 @@ function old_empty_or_null($key, $empty_value = '')
365365

366366
if (! function_exists('is_multidimensional_array')) {
367367
/**
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
368+
* Check if the array is multidimensional.
369+
*
370+
* If $strict is enabled, the array is considered multidimensional only if all elements of the array are arrays.
372371
*/
373-
function is_multidimensional_array(array $array, bool $strict = false)
372+
function is_multidimensional_array(array $array, bool $strict = false): bool
374373
{
375374
foreach ($array as $item) {
376375
if($strict) {

0 commit comments

Comments
 (0)