Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
function isMulty(array $array):bool {
$result = false;
reset($array);
while($val=current($array))
{
if(is_array($val)) {
$result = true;
break;
}
next($array);
}
return $result;
}
$ar = [
6 => 590,
12 => 990
];
echo isMulty($ar);