PHP 8.5.0 Beta 3 available for testing

oauth_urlencode

(PECL OAuth >=0.99.2)

oauth_urlencode โ€” ๅฐ† URI ็ผ–็ ไธบ RFC 3986 ่ง„่Œƒ

่ฏดๆ˜Ž

oauth_urlencode(string $uri): string

ๅฐ† URI ็ผ–็ ไธบ ยป RFC 3986 ่ง„่Œƒใ€‚

ๅ‚ๆ•ฐ

uri

ๅฐ†่ฆ็ผ–็ ็š„ URI ใ€‚

่ฟ”ๅ›žๅ€ผ

่ฟ”ๅ›žไธ€ไธช ยป RFC 3986 ่ง„่Œƒ็š„็ผ–็ ๅญ—็ฌฆไธฒใ€‚

๏ผ‹ๆทปๅŠ ๅค‡ๆณจ

็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจ 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