Made it much more terse

This commit is contained in:
pezcurrel 2024-10-30 18:35:47 +01:00
parent 10e18feca8
commit 7006c31b2b

View file

@ -1,14 +1,10 @@
<?php
function ckmkeys($keys,$arr) {
$b=true;
foreach ($keys as $key) {
if (!array_key_exists($key,$arr)) {
$b=false;
break;
}
}
return $b;
foreach ($keys as $key)
if (!array_key_exists($key,$arr))
return false;
return true;
}
?>