original_string: public static function base64Encode($data, $url = false)
      {
          if ($url) {
              return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
          } else {
              return base64_encode($data);
          }
      }
code: public static function base64Encode($data, $url = false)
      {
          if ($url) {
              return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
          } else {
              return base64_encode($data);
          }
      }
code_tokens: public static function base64Encode ( $ data , $ url = false ) { if ( $ url ) { return rtrim ( strtr ( base64_encode ( $ data ) , '+/' , '-_' ) , '=' ) ; } else { return base64_encode ( $ data ) ; } }
docstring: Encode binary data using base64.
  
  @param string $data
  String.
  @param bool $url
  'base64url' standard. Removes padding and replaces '+'
  and '/' with '-' and '_'.
  @return string Base64 encoded string.
docstring_tokens: Encode binary data using base64 .