php - How do I print this multidimensional array?

anastyDat

New Member
Lets say I have the following array:\[code\]Array ( [1284487200] => Array ( [title] => first title [link] => http%3A%2F%2Fexample1.com ) [1261271380] => Array ( [title] => second title [link] => http%3A%2F%2Fexample2.com )\[/code\]I want to print the array like this:\[code\]<a href="http://example1.com">first title - 1284487200</a><br><a href="http://example2.com">second title - 1261271380</a><br>\[/code\]Any ideas would be greatly appreciated!UPDATE: the 2 answers provided have the same error in that my domain is included in the link, eg. http://www.mydomain.com/http:/%example1.comAny way I can correct that?
 
Back
Top