I want to set something to the URL when the page is loading ... How can I do that?
When you open this URL:
http://stackoverflow.com/questions/38839016/should-i-store-the-result-of-an-function
automatically it will be replaced with this:
http://stackoverflow.com/questions/38839016/should-i-store-the-result-of-an-function-into-an-array
How does SO do that?
Note: I've disabled JavaScript on the browser, still that replacement happens. So it is done by PHP.