txt3rob — 2013-10-25T06:04:39-04:00 — #1
I have a soap response i wish to just extract what is in between the following brackets
what would the best way be.
the whole response comes back from a curl and is called $response as it's variable.
salathe — 2013-10-25T08:17:58-04:00 — #2
Is there any reason why you're using cURL, rather than something like PHP's SoapClient?
txt3rob — 2013-10-25T08:19:31-04:00 — #3
just using it as a test at the moment.
txt3rob — 2013-10-25T09:56:18-04:00 — #4
can any one help do a pregmatch for it instead?
salathe — 2013-10-26T06:29:22-04:00 — #5
Why not show us what you have so far, and folks can help you to make it work the way you want? (:
johnyboy — 2013-10-26T14:20:50-04:00 — #6
$string = '<ns1:InsuranceGroup>1</ns1:InsuranceGroup>';
$data = $match;
echo '<p>', $data, '</p>';
txt3rob — 2013-10-28T07:17:27-04:00 — #7
Thank you that has worked
i need to try do a multiple match now to echo out some results
i have the following
<ns1:Description>5 Door Hatchback</ns1:Description>
<ns1:Description>5 Speed Manual Petrol</ns1:Description>
is there any easy way to extract the make and model and transmission from the returned values there?
i altered the code above to look for description but now i am stuck as it's hitting about 6 options of description now
txt3rob — 2013-10-28T07:40:00-04:00 — #8
think i have sorted it now