get_header

FUNCTION wp-includes\SimplePie\src\HTTP\Response.php (ligne 114) github
Retrieves a message header value by the given case-insensitive name. This method returns an array of all the header values of the given case-insensitive header name. If the header does not appear in the message, this method MUST return an empty array.

Paramètres

Entrée :
string $name
Sortie :
@param string $name Case-insensitive header field name.
@return string[] An array of string values as provided for the given

Utilisation

// Utilisation de la fonction get_header
$result = get_header(string $name);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...