How the JSON array system works.
All data originate in the Master Spreadsheet
$json_a = file_get_contents("programs.json");
$matrix = json_decode($json_a,true);
//Loop through $matrix array by program
foreach ($GLOBALS["matrix"][programs] as $program) {
//if there is a word match for the associate degree type
if (preg_match("/\baa\b/", $program['degreeLevel']['degreeLevel'], $pass_fail) == true)
//then echo out the linked LP
{
echo '
' . $program['name'] . ' - ' . $program['degreeLevel']['aa']['abbr'] .' '; echo "\n";
}
}