I am trying to convert special characters (eg. +, /, &, %) which I will use them for a GET request. I have constructed a
+
/
&
%
There's already a function for this in the standard PHP library: rawurlencode.