How to redirect one page to another page in php

redirect
php

There are some methods to redirect in php.

$url = 'www.google.com';
redirect($url);

and next method for redirection

echo "<script>window.location=window.location</script>";

 

You might also like:

Check null values in JavaScript?

04-02-2019 JavaScript null check null value

Convert and download html to pdf without saving file

28-10-2018 node js convert html to pdf pdf download pdf without saving

How to use http-post request in node js

14-03-2017 http-post module node js

How to make an http request in node js

14-03-2017 http module node js

Call a function every second or 5 seconds in javascript

22-02-2017 setinterval function calling