I am new to php.
And I am trying to replace the "hash(#)"
in the url string with "ampersand(&)".
For example:
If the url is :`
http://www.abc.com/Cat/pgecategory.aspx?cid=8730&via=top#pge=2&pgeSize=36
I want to change it to
http://www.abc.com/Cat/pgecategory.aspx?cid=8730&via=top&pge=2&pgeSize=36
I have tried the following:
str_replace("#","&",$url);
But the above doesn't work? What am I doing wrong?
How can I achieve the above task?