0
I am using this code to pull characteristics of a particular product:
<?php
$array = array(
'key' => '46dfg456465g4d654d65f4564dfg',
'module' => 'imoveis',
'method' => 'listar_origens'
);
$client = new SoapClient(null, array (
'uri' => 'http://soap.imo.bi/',
'location' => 'http://soap.imo.bi/soap.dll',
'trace' => 'trace'
));
$res = $client->get($array);
echo "<pre>";
print_r($res);
echo "</pre>";
?>
One of these characteristics is the field [field] which I need to recover 250 times because there are 250 different values for this field. The result of the script is this:
Array
(
[0] => Array
(
[alias] => imo.DATA
[field] => DATA
[description] => Data cadastro
[type] => Data
[field_site] =>
)
When placing $res[0]['field']
it returns me the first value that is DATE and so on as I change the values. I want to dynamically within a loop recover the 250 values at once. I ask for help!!!
I have no knowledge of PHP, but I believe that a loop would solve this situation, no?
– mutlei
Forehead
foreach($res as $item){ echo $item['field']; }
– Sergio
Is this result complete? Or is it still 0.1.2...?
– Inkeliz