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

search for in the

OAuth> <oauth_get_sbs
[edit] Last updated: Fri, 25 May 2012

view this page in

oauth_urlencode

(PECL OAuth >=0.99.2)

oauth_urlencodeURI を RFC 3686 形式でエンコードする

説明

string oauth_urlencode ( string $uri )

URI を » RFC 3686 形式でエンコードします。

パラメータ

uri

エンコードしたい URI。

返り値

» RFC 3686 形式でエンコードした文字列を返します。



add a note add a note 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;
}

?>

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