src/Header.php
public static function send($clean = TRUE){

        if( !headers_sent() ){

            foreach( self::$headers as $header ){

                if( is_array($header) ){
                    call_user_func_array('header', $header);
                }else{
                    header($header);
                }

            }

            if( $clean ){
                self::$headers = array();
            }

        }

        self::$sent = TRUE;
    }
public static function send($clean = TRUE){

        if( !headers_sent() ){

            foreach( self::$headers as $header ){

                if( is_array($header) ){
                    call_user_func_array('header', $header);
                }else{
                    header($header);
                }

            }

            if( $clean ){
                self::$headers = array();
            }

        }

        self::$sent = TRUE;
    }
public static function send ( $ clean = TRUE ) { if ( ! headers_sent ( ) ) { foreach ( self :: $ headers as $ header ) { if ( is_array ( $ header ) ) { call_user_func_array ( 'header' , $ header ) ; } else { header ( $ header ) ; } } if ( $ clean ) { self :: $ headers = array ( ) ; } } self :: $ sent = TRUE ; }
Send HTTP Headers
@param boolean $clean
@return void
Send HTTP Headers