I want to use PHP to find any / that is in a variable which can be called via $_GET. This variable is the end part of a document URL. The URL will be fed into Google Document Viewer. However, the embedded document URL should use %2F instead of /. Is it possible to use PHP to say "every time I see /, I replace it with %2F"? Online Deals India
Url Encoding: http://php.net/manual/en/function.urlencode.php Url Decoding: http://php.net/manual/en/function.urldecode.php You can find all you need from here.