OAuth> <oauth_get_sbs
Last updated: Fri, 24 Feb 2012

oauth_urlencode

(PECL OAuth >=0.99.2)

oauth_urlencodeEncode a URI to RFC 3986

Descrição

string oauth_urlencode ( string $uri )

Encodes a URI to » RFC 3986.

Parâmetros

uri

URI to encode.

Valor Retornado

Returns an » RFC 3986 encoded string.



User Contributed Notes
oauth_urlencode
bohwaz
30-Mar-2010 04:20
Note that php5.3 rawurlencode will do exactly the same thing.

For PHP 5.2, easy replacement to this function :

<?php

function rfc3986_encode($str)
{
 
$str = rawurlencode($str);
 
$str = str_replace('%E7', '~', $str);
  return
$str;
}

?>

OAuth> <oauth_get_sbs
Last updated: Fri, 24 Feb 2012