Ejemplo n.º 1
0
 private static function haskey($collection, $key, $strict = true)
 {
     if (is_string($key)) {
         return isset($collection[$key]);
     }
     if (is_array($key)) {
         return Req::arrayInArray($key, array_keys($collection), $strict);
     }
     return false;
 }