Passing & in URL variable with the help of urlencode
- by pradeep
I have done urlencode of the variable before passing to the URL
http://example.com/Restaurants?aliasF%26B
But when I try to print like in the page
$alias = rawurldecode($_GET['alias']);
echo $alias;
it prints only F. How to solve this?