Nitz Nitz - 1 year ago 70
PHP Question

Change the URL through PHP

I want to change the URL through PHP.

Something like

window.location.href = ""
in JavaScript.

I want the same thing but in PHP. How can I do it?

Answer Source

You can use the header function for that: