Made it much more terse
This commit is contained in:
parent
10e18feca8
commit
7006c31b2b
1 changed files with 4 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue