title: Get item from PHP array without loop
body: <p>In JavaScript, if I have object or array from JSON</p>
  
  <pre><code>var arr = ["one", "two", "three"];
  var obj = {"hello": "dolly", "jurassic": "park"}
  </code></pre>
  
  <p>I can get any individual item from it easily without looping:</p>
  
  <pre><code>alert(arr[1]); // outputs "two"
  alert(obj["hello"]); // outputs "dolly"
  </code></pre>
  
  <p>Is there a similar way to do this in PHP?</p>
  
  <pre><code>echo arr[1];
  echo obj["hello"];
  echo arr-&gt;1
  echo obj-&gt;"hello"
  </code></pre>