title: How to access N-th element of an array in PHP
body: <p>I'm embarrassed to ask this and it's most likely a duplicate, but my google results are coming up short (im searching incorrectly I guess) and such a basic question is infuriating me.</p>
  
  <p>I have an array containing values I don't know.</p>
  
  <p>In java, to have a look at the 2nd entry, I would use something like </p>
  
  <pre><code>var = array[1]
  </code></pre>
  
  <p>I understand Php arrays are key-value pairs, but how can I simply look at the nth value in an array to see it's key-value pair, and even better, then access just the key / value?</p>