Folks,
In this tutorial:
It says difference between urlencode() and raw_urlencode() is that one converts space into %20 and while the other into +.
Also says to use former when encoding url query and use the latter when encoding file path or url path. But in their example, they don’t convert the query string (in the url) using the urlencode(). And so I am confused now. I mean, by “query” did they mean the “query string” ($_GET[”] param) in the url or the file name ? Because from the looks of it, it seems they are talking abut “file name” and not the “query string”. Strange!
Hence, I prefer you fine folks to show us two proper examples of how to use both these functions when it comes to encoding url path and encoding url query.
Thanks