I am picking up some code (soap related) and I am not sure if its "best practice" I was wondering if someone could point me in the right direction.
$requests = new stdClass();
$requests->rq = new stdClass();
$requests->rq->SessionId = $session;
$requests->rq->FareSourceCode = $searchs->fare_source_code;
$requests->rq->TravelerInfo = new stdClass();
$requests->rq->TravelerInfo->AirTravelers = new stdClass();
$parametersLike4LikeSector1[] = new SoapVar('M', XSD_STRING, null,null,'ns1:Gender');
$parametersLike4LikeSector1[] = new SoapVar('JOE', XSD_STRING, null, null,'ns1:PassengerFirstName');
$parametersLike4LikeSector1[] = new SoapVar('BLOGGS', XSD_STRING, null, null,'ns1:PassengerLastName');
$objectLike4Like[] = new SoapVar($parametersLike4LikeSector1, SOAP_ENC_OBJECT, null, null,'ns1:AirTraveler');
$requests->rq->TravelerInfo->AirTravelers = new SoapVar($objectLike4Like, SOAP_ENC_OBJECT);
via Hayden Sweet