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:

Detect AdBlock with JavaScript in my browser

30-07-2017 AdBlock javascript detect

Example for Conditional Operator in php

16-04-2017 php Conditional Operator example

Convert Time 24 hrs to 12 hrs format In javascript

12-03-2017 date javascript 12hrs convert

Get next date from given date in javascript

06-03-2017 date javascript next date

Filter for change Date format (MM-dd-yyyy) in Angular Js

05-03-2017 mm-dd-yyyy date formats angular js