PHP 8.5.0 Beta 3 available for testing

oauth_urlencode

(PECL OAuth >=0.99.2)

oauth_urlencode β€” URI γ‚’ RFC 3686 归式でエンコードする

θͺ¬ζ˜Ž

oauth_urlencode(string $uri): string

URI γ‚’ Β» RFC 3686 归式でエンコードします。

パラパータ

uri

γ‚¨γƒ³γ‚³γƒΌγƒ‰γ—γŸγ„ URI。

ζˆ»γ‚Šε€€

Β» RFC 3686 ε½’εΌγ§γ‚¨γƒ³γ‚³γƒΌγƒ‰γ—γŸζ–‡ε­—εˆ—γ‚’θΏ”γ—γΎγ™γ€‚

οΌ‹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