What is header in PHP
In this article I am going to explain about header function in PHP.
PHP header() Function
The http header function sends a raw HTTP header to a client.
Syntax of header function
header(string, replace, httpResponceCode) |
Parameters in header function
It have three parameter:
Parameter |
Description |
string |
It specifies the header string. |
replace |
It is optional parameter and indicates whether the header should replace a previous similar header, or add a second header. |
httpResponceCode |
It specifies a value. |
Example of http header function
<html>
<body>
<?php
header('Location: https://dotnetheaven.com/');
?>
</body>
</html>
|
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here