public function land(Binary $sint) { $bytes = array(); $t = min($this->n(), $sint->n()); for ($i = 0; $i < $t; $i++) { $bytes[$i] = $this->getByte($i) & $sint->getByte($i); } return new Binary($bytes, min($this->getSize(), $sint->getSize())); }