title: How to access specific array value in laravel dd function
body: <p>I just need the coordinates from the geolocation based on the address i put in the params. I am using curl for the request. </p>
  
  <p>Here is my curl request</p>
  
  <pre><code>        $url = 'https://maps.googleapis.com/maps/api/geocode/json?address=10%20BISHAN%STREET%2013&amp;key='.$key;
          $ch = curl_init();
          curl_setopt($ch, CURLOPT_URL, $url);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
          $response = json_decode(curl_exec($ch), true);
          dd($response);
  </code></pre>
  
  <p>I got a response of</p>
  
  <pre><code>array:2 [▼
    "results" =&gt; array:1 [▼
      0 =&gt; array:6 [▼
        "address_components" =&gt; array:6 [▶]
        "formatted_address" =&gt; "10 Bishan Street 13, Singapore 579795"
        "geometry" =&gt; array:3 [▼
          "location" =&gt; array:2 [▼
            "lat" =&gt; 1.349774
            "lng" =&gt; 103.854975
          ]
          "location_type" =&gt; "ROOFTOP"
          "viewport" =&gt; array:2 [▶]
        ]
        "place_id" =&gt; "ChIJR0tGixEX2jERVE4uZWfBN-o"
        "plus_code" =&gt; array:2 [▶]
        "types" =&gt; array:1 [▶]
      ]
    ]
    "status" =&gt; "OK"
  ]
  </code></pre>
  
  <p>If i do <code>dd($response['result']);</code></p>
  
  <p>I get</p>
  
  <pre><code>  0 =&gt; array:6 [▼
      "address_components" =&gt; array:6 [▶]
      "formatted_address" =&gt; "10 Bishan Street 13, Singapore 579795"
      "geometry" =&gt; array:3 [▼
        "location" =&gt; array:2 [▼
          "lat" =&gt; 1.349774
          "lng" =&gt; 103.854975
        ]
        "location_type" =&gt; "ROOFTOP"
        "viewport" =&gt; array:2 [▼
          "northeast" =&gt; array:2 [▼
            "lat" =&gt; 1.3511229802915
            "lng" =&gt; 103.85632398029
          ]
          "southwest" =&gt; array:2 [▼
            "lat" =&gt; 1.3484250197085
            "lng" =&gt; 103.85362601971
          ]
        ]
      ]
      "place_id" =&gt; "ChIJR0tGixEX2jERVE4uZWfBN-o"
      "plus_code" =&gt; array:2 [▼
        "compound_code" =&gt; "8VX3+WX Singapore"
        "global_code" =&gt; "6PH58VX3+WX"
      ]
      "types" =&gt; array:1 [▼
        0 =&gt; "street_address"
      ]
    ]
  ]
  </code></pre>
  
  <p>Is there a way i can access <code>location</code> directly using <code>dd</code>?. Thanks for the answers.</p>