title: PHP get both array value and array key
body: <p>I want to run a for loop through an array and create anchor elements for each element in the array, where the key is the text part and the value is the URL.</p>
  
  <p>How can I do this please?</p>
  
  <p>Thank you.</p>