= 8 ) { $bits -= 8; $output .= chr( ( $buffer >> $bits ) & 0xFF ); } } return $output; } }