downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

OAuth> <oauth_get_sbs
[edit] Last updated: Thu, 23 May 2013

view this page in

oauth_urlencode

(PECL OAuth >=0.99.2)

oauth_urlencodeEncode une URI conformément à RFC 3986

Description

string oauth_urlencode ( string $uri )

Encodes une URI conformément à » RFC 3986.

Liste de paramètres

uri

l'URI à encoder.

Valeurs de retour

Retourne une chaîne encodée conformément à » RFC 3986.



add a note add a note User Contributed Notes oauth_urlencode - [1 notes]
up
0
bohwaz
3 years ago
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;
}

?>

 
show source | credits | sitemap | contact | advertising | mirror sites