3
$url= "testę";
$urlLower = strtolower($url);

echo "$url<br> $urlLower ";

输出:

test%c4%99
test%C4%99

如何输出

test%C4%99
test%C4%99
4

1 回答 1

1

我想你想看看urlencode:

$url = 'testę';
$urlLower = urlencode($url);

这会给你:

$urlLower = 'test%C4%99'

http://php.net/manual/en/function.urlencode.php

于 2013-08-04T08:13:21.270 回答