How to redirect a page in php?

by:

GeneralPhpPHP Interview Questions

very easy way: header(“Location:index.php”);

// here index.php is the page where we want to redirect. you can change the name where to want to redirect.