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
|
<?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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue