I have retrieved data from database. Structure looks like this.
$array = array ( array ('name'=>'oscar', 'surname'=>'trump', 'age'=>'40'),array ('name'=>'ben', 'surname'=>'simmons', 'age'=>'22'), array ('name'=>'daniel', 'surname'=>'green', 'age'=>'12'));
I would like to import this data into my database. Which has the same structure. ID, name , surname , age. I understand there must be some kind of loop, but I cant really manage to get there.