title: having difficulty to get style id from edmunds api
body: <pre><code>Array ( [make] =&gt; Array ( [id] =&gt; 200000201 [name] =&gt; Nissan [niceName] =&gt; nissan ) [model] =&gt; Array ( [id] =&gt; Nissan_Pathfinder [name] =&gt; Pathfinder [niceName] =&gt; pathfinder ) [engine] =&gt; Array ( [equipmentType] =&gt; ENGINE [availability] =&gt; USED [cylinder] =&gt; 6 [size] =&gt; 3.5 [configuration] =&gt; V [fuelType] =&gt; regular unleaded [horsepower] =&gt; 260 [type] =&gt; gas [code] =&gt; VQ35DE [rpm] =&gt; Array ( [horsepower] =&gt; 6400 [torque] =&gt; 4400 ) [valve] =&gt; Array ( [gear] =&gt; double overhead camshaft ) ) [transmission] =&gt; Array ( [id] =&gt; 200405221 [name] =&gt; continuously variableA [equipmentType] =&gt; TRANSMISSION [availability] =&gt; STANDARD [automaticType] =&gt; Continuously variable [transmissionType] =&gt; AUTOMATIC [numberOfSpeeds] =&gt; continuously variable ) [drivenWheels] =&gt; front wheel drive [numOfDoors] =&gt; 4 [options] =&gt; Array ( ) [colors] =&gt; Array ( [0] =&gt; Array ( [category] =&gt; Interior [options] =&gt; Array ( [0] =&gt; Array ( [id] =&gt; 200439557 [name] =&gt; Almond Leather [equipmentType] =&gt; COLOR [availability] =&gt; USED ) ) ) [1] =&gt; Array ( [category] =&gt; Exterior [options] =&gt; Array ( [0] =&gt; Array ( [id] =&gt; 200439553 [name] =&gt; Cayenne Red Metallic [equipmentType] =&gt; COLOR [availability] =&gt; USED ) ) ) ) [manufacturerCode] =&gt; 25513 [price] =&gt; Array ( [baseMSRP] =&gt; 34850 [baseInvoice] =&gt; 31770 [deliveryCharges] =&gt; 845 [usedTmvRetail] =&gt; 22236 [usedPrivateParty] =&gt; 20769 [usedTradeIn] =&gt; 19116 [estimateTmv] =&gt; ) [categories] =&gt; Array ( [market] =&gt; Crossover [EPAClass] =&gt; Sport Utility Vehicles [vehicleSize] =&gt; Large [crossover] =&gt; Car [primaryBodyType] =&gt; SUV [vehicleStyle] =&gt; 4dr SUV [vehicleType] =&gt; SUV ) [vin] =&gt; 5N1AR2MNXDC676161 [squishVin] =&gt; 5N1AR2MNDC [years] =&gt; Array ( [0] =&gt; Array ( [id] =&gt; 100539157 [year] =&gt; 2013 [styles] =&gt; Array ( [0] =&gt; Array ( [id] =&gt; 200439517 [name] =&gt; SL 4dr SUV (3.5L 6cyl CVT) [submodel] =&gt; Array ( [body] =&gt; SUV [modelName] =&gt; Pathfinder SUV [niceName] =&gt; suv ) [trim] =&gt; SL ) ) ) ) [matchingType] =&gt; SQUISHVIN [MPG] =&gt; Array ( [highway] =&gt; 26 [city] =&gt; 20 ) ) NissanPathfinder2013
  </code></pre>
  
  <p>from this array I get <code>make</code>, <code>model</code>, and <code>year</code> like this:</p>
  
  <pre><code>$ed_json=file_get_contents($ed_url);
  $ed_array= json_decode($ed_json, true);
  print_r($ed_array);
  $make=$ed_array['make']['name'];
  $model=$ed_array['model']['name'];
  $year=$ed_array['years']['0']['year'];
  
  
  echo $make;
  echo $model; 
  echo $year;
  </code></pre>
  
  <p>now I am doing the same thing to get style id but I cannot get it.
  this is the code for style id:</p>
  
  <pre><code>$id=$ed_array['styles']['0']['id'];
  echo $id;
  </code></pre>