Php newbie

I havent used php in a long time and need help with what I am sure is a basic function.

I have a multi-dimensional array - ArrayName and inside there are 5 elements - name, content, photo, service, link.

I need to loop thru ArrayName and display only the Names and key of each entry. I have figured out how to print all elements but not just the ‘name’ and key.

thanks in advance


foreach($ArrayName as $key=>$value){
	echo $key . " = " . $value;
}

does this work for you?