- print_r: documentation ( source)
<?php
$datexURL = "https://datex.trafikverket.se/D2ClientPull/SituationPullServerBA/2_3/Accident?wsdl";
$username = "datex";
$password = "datex2009";
$soapOptions = array('login' => $username,
'password' => $password,
'exceptions' => "true",
'trace' => "true",
'compression' => 'SOAP_COMPRESSION_ACCEPT' | 'SOAP_COMPRESSION_DEFLATE' | 5 );
$client = new SoapClient($datexURL, $soapOptions);
$result = $client->getDatex2Data();
print_r($result);
?>