I want to know that how to send a response using header in php . When an application or an User hit my URL then i have to send a response header with response 1 for failure and 0 for success, and if the response is success (0) then i have to send two values in response header.
The header
function will allow you to set a header.
header("foo", 1);
… but it sounds like you are reinventing HTTP status codes.