Foreach add to array
Posted: Thu Mar 14, 2013 7:12 pm
I have a function that grabs data from a url and parses it into an array. So I have one array inside another array so:
ARRAY { - First Post -- Author --- Fred -- Date --- 13/3/1998 -- URL --- example.com - Second Post -- Author --- Fred -- Date --- 13/3/1998 -- URL --- example.com }and I was wondering how I add an entry to each of the arrays in a foreach loop so I could get
ARRAY { -- Author --- Fred -- Date --- 13/3/1998 -- URL --- example.com -- Shortcode --- abc123 - Second Post -- Author --- Fred -- Date --- 13/3/1998 -- URL --- example.com -- Shortcode --- abc123 }Thanks!