protected function compliment($string) {
        $result = '';
        $len    = strlen($string);
        for ($i = 0; $i < $len; $i++) {
            $result .= chr(255 - ord($string[$i]));
        }
        return $result;
    }
protected function compliment($string) {
        $result = '';
        $len    = strlen($string);
        for ($i = 0; $i < $len; $i++) {
            $result .= chr(255 - ord($string[$i]));
        }
        return $result;
    }
protected function compliment ( $ string ) { $ result = '' ; $ len = strlen ( $ string ) ; for ( $ i = 0 ; $ i < $ len ; $ i ++ ) { $ result .= chr ( 255 - ord ( $ string [ $ i ] ) ) ; } return $ result ; }
Take the 256 base compliment

@param string $string The binary string to compliment

@return string The complimented string
Take the 256 base compliment