Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$url= "testę"; $urlLower = strtolower($url); echo "$url<br> $urlLower ";
输出:
test%c4%99 test%C4%99
如何输出
test%C4%99 test%C4%99
我想你想看看urlencode:
urlencode:
$url = 'testę'; $urlLower = urlencode($url);
这会给你:
$urlLower = 'test%C4%99'
http://php.net/manual/en/function.urlencode.php