modified foreach.php to output all values inside of the original array and the nested array