我有一個像GET HTTP URL參數 <p>我該怎麼辦?</p> <p>感謝</p>
test.php?x=hello+world&y=%00h%00e%00l%00l%00o
一個URL時,我把它寫到文件
file_put_contents('x.txt', $_GET['x']); // -->hello world
file_put_contents('y.txt', $_GET['y']); // -->\0h\0e\0l\0l\0o
,但我需要將它寫入未編碼
file_put_contents('x.txt', ????); // -->hello+world
file_put_contents('y.txt', ????); // -->%00h%00e%00l%00l%00o
汽車解碼
無法正常工作。它會返回x - > hello + world,y - >%5C0h%5C0e%5C0l%5C0l%5C0o – user1725661 2013-03-21 05:52:56
@ user1725661 - 然後發生其他事情。我只是測試了這個,它工作正常...看到我的擴展答案。 – 2013-03-21 16:32:27