src/HttpCookie.php
public function getHeaderString()
    {
        $parts = [
            $this->name . '=' . rawurlencode($this->value),
            $this->getMaxAgeString(),
            $this->getExpiresString(),
            $this->getDomainString(),
            $this->getPathString(),
            $this->getSecureString(),
            $this->getHttpOnlyString(),
        ];

        $filteredParts = array_filter($parts);

        return implode('; ', $filteredParts);
    }
public function getHeaderString()
    {
        $parts = [
            $this->name . '=' . rawurlencode($this->value),
            $this->getMaxAgeString(),
            $this->getExpiresString(),
            $this->getDomainString(),
            $this->getPathString(),
            $this->getSecureString(),
            $this->getHttpOnlyString(),
        ];

        $filteredParts = array_filter($parts);

        return implode('; ', $filteredParts);
    }
public function getHeaderString ( ) { $ parts = [ $ this -> name . '=' . rawurlencode ( $ this -> value ) , $ this -> getMaxAgeString ( ) , $ this -> getExpiresString ( ) , $ this -> getDomainString ( ) , $ this -> getPathString ( ) , $ this -> getSecureString ( ) , $ this -> getHttpOnlyString ( ) , ] ; $ filteredParts = array_filter ( $ parts ) ; return implode ( '; ' , $ filteredParts ) ; }
Returns the cookie HTTP header string.

@return string
Returns the cookie HTTP header string .