0 votes
127 views
in PHP by (2.0k points)
edited

What is the use of header() function in PHP?

1 Answer

0 votes
by (2.0k points)
edited
The header() function is used to send a raw HTTP header to a client. It must be called before sending the actual output. For example, you can't print any HTML element before using this function.

Related questions

0 votes
1 answer 154 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 115 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)
0 votes
1 answer 151 views
0 votes
1 answer 230 views
0 votes
1 answer 126 views
asked Apr 9, 2022 in PHP by Doubtly (98.9k points)

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

554 users

...