oauth_urlencode

(PECL OAuth >=0.99.2)

oauth_urlencodeEncode a URI to RFC 3986

Açıklama

oauth_urlencode(string $uri): string

Encodes a URI to » RFC 3986.

Bağımsız Değişkenler

uri

URI to encode.

Dönen Değerler

Returns an » RFC 3986 encoded string.

add a note

User Contributed Notes 1 note

up
-1
bohwaz
15 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;
}

?>
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant