PHP get value of array by position
<p>I am pulling the latest 3 news articles from my database and I need to access them by the order they were pulled from, so first position in the array, second position and so on to display them in order in random sections of my web page. I came across accessing the array key but that is not working, where am I going wrong? Thanks in advance!</p>

<pre><code>$value = array_slice($blog, 0, 1);
echo $value;
</code></pre>
