Sorry for being novice. i have a multidimensional array as under
array(3){
[0] = array(2){
[type]=>car,
[model]=> mazda
}
[1]= array(2){
[type]=>car,
[model]=> lexus
}
[3]= array(2){
[type]=>car,
[model]=> lexus
}
}
Now I want to loop through every type in this array and fetch result i.e. car company link from the database and want to push into this existing array. end result should look like
array(3){
[0] = array(3){
[type]=>car,
[model]=> mazda,
[link]=> http://mazda.com
}
[1]= array(3){
[type]=>car,
[model]=> lexus
[link]=> http://lexus.com
}
[3]= array(3){
[type]=>car,
[model]=> rangerover
[link]=> http://rangerover.com
}
}
I can easily loop through this array and fetch result but I don’t know how to push this new result back into this array.
please help!!!