PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?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 = [1, [1,3]]; echo isMulty($ar);
Show:  
Copy Clear