private function addInteger($content) { $int = pack('N', intval(strlen($content) + 4)); return $int . $content; }