$client = new SoapClient("example.wsdl"); // Make SOAP request $headers = $client->__getLastRequestHeaders(); echo "Request headers: " . $headers;In this example, we create a new SoapClient object using a WSDL file. Then, we make a SOAP request to the server and store the last request headers in a variable. Finally, we print out the headers. This method is part of the PHP SoapClient class, which is part of the php-soap package library. This library provides a set of classes for working with SOAP-based web services.