I would like to know if its possible to clear the current information stored in header_list()
if(headers_sent()){ foreach(headers_list() as $header){
Once header is sent we can not clear it. The best solution for it to turn on output_buffering in php.ini file.
output_buffering = On