describe arguments in header in php?

Answer Posted / seem, delhi

header() function has three arguments

1)string:Required. Specifies the header string to send
2)replace: Optional. Indicates whether the header should
replace previous or add a second header. Default is TRUE
(will replace). FALSE (allows multiple headers of the same type)
3)http_response_code:Optional. Forces the HTTP response code
to the specified value

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write down the code for save an uploaded file using php?

647


What is $_session in php?

751


What is the difference between echo print and print_r in php?

758


What are regular expressions in programming?

677


What is a php class?

752


What is the most convenient hashing method to be used to hash passwords?

704


What is difference between php and wordpress?

725


What are access specifiers?

711


How to get the http request in php?

782


How to remove duplicate values from array using php?

772


Can we use php variable in javascript?

754


Explain do you use composer? If yes, what benefits have you found in it?

749


How is it possible to set an infinite execution time for php script?

746


What is difference between web service and api?

736


am from coimbatore.am learning php&mysql. what will be the approx salary for me if i get a job in coimbatore.

1825