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 <?php
function ckmkeys($keys,$arr) { function ckmkeys($keys,$arr) {
$b=true; foreach ($keys as $key)
foreach ($keys as $key) { if (!array_key_exists($key,$arr))
if (!array_key_exists($key,$arr)) { return false;
$b=false; return true;
break;
}
}
return $b;
} }
?> ?>