Question:What is the use of header() function in php? 

Answer The header() function sends a raw HTTP header to a client browser.Remember that this function must be called before sending the actual out put.For example, You do not print any HTML element before using this function. It is most frequently used to redirect request to get other file. example: The following code can be used for it, header("Location:index.php"); 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd_com_https\answers\column_answer_two.php on line 128
+ Report
Total Preview: 643
What is the use of header() function in php?
Copyright © 2024. Powered by Intellect Software Ltd