Jakez Posted June 1, 2009 Share Posted June 1, 2009 Ok so I have something like: Array ( [http://www.url.com/audio/60723620cc4eaa73/] => decripsdf sf asdf sdf [http://www.url.com/audio/6072363275d23388/] => description asf asdf asd ) And afterwards I need to be able to print out something using both the URL's and the text they hold, like: <a href=http://www.url.com/audio/60723620cc4eaa73/>decripsdf sf asdf sdf</a> <a href=http://www.url.com/audio/6072363275d23388/>description asf asdf asd</a> Problem is, I don't know how to do this because arrays confuse the hell out of me Quote Link to comment Share on other sites More sharing options...
btherl Posted June 1, 2009 Share Posted June 1, 2009 foreach ($array as $key => $value) { print "<a href='$key'>$value</a>"; } Quote Link to comment Share on other sites More sharing options...
Jakez Posted June 1, 2009 Author Share Posted June 1, 2009 LOL, embarassing. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.