location function in php code example Example: php location <?php header('Location: http://www.example.com/');