SyntaxFix
Write A Post
Hire A Developer
Questions
The plus sign is the historic encoding for a space character in URL parameters, as documented in the help for the urlencode() function.
urlencode()
That same page contains the answer you need - use rawurlencode() instead to get RFC 3986 compatible encoding.
rawurlencode()