original_string: public static function binToHex($bin, $length = 0)
      {
          $gmp = gmp_init($bin, 2);
          $hex = gmp_strval($gmp, 16);
  
          return self::pad($hex, $length);
      }
code: public static function binToHex($bin, $length = 0)
      {
          $gmp = gmp_init($bin, 2);
          $hex = gmp_strval($gmp, 16);
  
          return self::pad($hex, $length);
      }
code_tokens: public static function binToHex ( $ bin , $ length = 0 ) { $ gmp = gmp_init ( $ bin , 2 ) ; $ hex = gmp_strval ( $ gmp , 16 ) ; return self :: pad ( $ hex , $ length ) ; }
docstring: Converts binary string into hexadecimal string.
  
  @param string $bin    Binary string.
  @param int    $length Minimum output length.
  
  @return string Hexadecimal string.
docstring_tokens: Converts binary string into hexadecimal string .