Get first and second element of array : <p>How I get first and second element in this array?</p>

<p><a href="https://i.stack.imgur.com/hkxB5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hkxB5.png" alt="enter image description here"></a></p>

<p>for example the first "AF" and second "Afghanistan", I need to put the value in html select tag</p>
