Does zf2 have an alias for urlencode
?
In zf2, if I want to do a rawurlencode
, I use:
$escaper = new Zend\Escaper\Escaper();
echo $escaper->escapeUrl('hello world');
Which outputs:
hello%20world
However, how would I call urlencode
? The desired output is:
hello+world
If the short answer is that I simply need to call urlencode
directly, then so be it.