- json_decode: documentation ( source)
<?php
$service_url = 'https://webservice-test.usatriathlon.org/membership/membershipvalidationservicev3rest.svc/membership/';
$curl = curl_init($service_url);
$curl_post_data = array(
"MemberId" => 2065115859,
"LastName" => 'Overcome',
"DateOfBirth" => '1972-07-03',
"EventDate" => '2013-01-13'
);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data);
$curl_response = curl_exec($curl);
curl_close($curl);
$response = json_decode($response);
//$xml = new SimpleXMLElement($curl_response);