title: Get a field from an Array of records
body: <p>How do I get all the values from a field in a record in an Array?</p>
  
  <p>I want to make an average from a numerical score held under a specific field in an Array. The array is pulled from a form. Here is what I have so far but it just doesn't work.</p>
  
  <pre><code>$records = get_field('maths_month_report'); //gets all the records
  $progressscore = $records['progress']; //targets the specific field in those records
  echo . array_sum($progressscore)/count($progressscore) .; //divides the numbers in the field by the amount of records
  </code></pre>
  
  <p>revision: My apologies for not mentioning that the records are Arrays within the 'maths_month_report' Array. I can target specific fields in specific records with:</p>
  
  <pre><code>$firstrecord = $records[0];
  $output = $firstrecord['progress']; 
  </code></pre>
  
  <p>I just want to target all the 'progress' values so i can average them.</p>