title: Accessing value inside multi-dimension JSON array using PHP
body: <p>I read several posts on here and have been unable to find success in resolving the problem I am having. </p>
  
  <p>I am trying to figure out how to get the NAME field from the UploadImage array.</p>
  
  <p>I have the following JSON being passed to me from a Webhook.</p>
  
  <pre><code>{
  "$version":5,
  "Entry":{
      "Number":"11",
      "Order":null,
      "Origin":
          {
          "City":"Portland",
          "CountryCode":"US",
          }
          ,
  "Message":"the message",
  "UploadImage":[
      {
          "ContentType":"image/png",
          "Id":"F-lMbiCYdwiYS8ppkQS4gsyE",
          "Name":"Screen.png",
          "Size":55907
      }
              ],
  "Subject":"here is the subject" 
  }
  </code></pre>
  
  <p>I have no problem grabbing the value of Subject or Message, but I cannot figure out how to grab the NAME within UploadImage.</p>
  
  <pre><code>  $contact = json_decode($json);  
    $subject=$contact-&gt;{'Subject'};
  </code></pre>
  
  <p>When I do </p>
  
  <pre><code>    $uploadimage=$contact-&gt;{'UploadImage'};  
  </code></pre>
  
  <p>it just writes out ARRAY.   </p>
  
  <p>I can do </p>
  
  <pre><code> echo  $contact-&gt;{'Entry'}-&gt;{'Number'}; 
  </code></pre>
  
  <p>and it works, so it has to be something with the bracket being there before the curly bracket. I know this has to be something simple that I am missing. 
  Any help is GREATLY appreciated.</p>