How to redirect one page to another page in php

20-03-2017 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:

Example for Conditional Operator in php
16-04-2017 php Conditional Operator example
Remove last two characters from given string using slice
07-03-2017 slice remove
Remove last two characters from given string
06-03-2017 substring javascript remove
Filter for insert HTML in Angular Js
06-03-2017 filter show html angular js html
Filter for change Date format (MM-dd-yyyy HH:mm) in Angular Js
05-03-2017 mm-dd-yyyy HH:MM date formats angular js