takn25 Posted February 4, 2011 Share Posted February 4, 2011 Hi, could some one tell me what does the % sign represent in a Url. e.g F%%2Fquestion%2Fask%3Ftitle%3Dwhat%2Bever%26amp%3Bsubmit-go%3DContinue&.src=knowsrch&.intl=us. I want to know why and when they are used and what are the benefits. Link to comment https://forums.phpfreaks.com/topic/226709-some-one-tell-me-what-does-mean-in-a-url/ Share on other sites More sharing options...
drisate Posted February 4, 2011 Share Posted February 4, 2011 The % are special characters that are not alowed inside an URL Ex: spaces = %20 You can use urlencode() and urldecode() They are used when you don't whant some characters in there to breake the var string Link to comment https://forums.phpfreaks.com/topic/226709-some-one-tell-me-what-does-mean-in-a-url/#findComment-1169962 Share on other sites More sharing options...
Pikachu2000 Posted February 4, 2011 Share Posted February 4, 2011 That is a urlencoded string. To see what those represent, you'd use urldecode Link to comment https://forums.phpfreaks.com/topic/226709-some-one-tell-me-what-does-mean-in-a-url/#findComment-1169963 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.