RdKafka\Message::headers

(PECL rdkafka >= 3.1.0)

RdKafka\Message::headersGet the message headers

Description

public RdKafka\Message::headers ( void ) : string

Get the headers of a message.

Parameters

This function has no parameters.

Return Values

The headers as an array

Examples

Example #1 RdKafka\Message::headers() example

<?php
var_dump
($message->headers);
?>