I have an array:
$availAds[$imageFile] = array(
'image' => $imageFile,
'title' => $artDetails[0],
'link' => $artDetails[1]
);
and I have values that need to be added to the array and assigned the same values based on there content:
foreach($querytitle as $currentTitle ):
$titlearray = $currentTitle->nodeValue ;
array_push( $availArts,$titlearray );
endforeach;
I'm using array_push and that adds it to the array fine, but I ened to be able to assign 'title' to $currentTitle.
Hope this makes sense, and thanks.