best way to store paired values:
Hi, I have a list of paired values that are to be retrieved from a database and returned by a function. There will be no set number of pairs returned.
A list of pairs may look like the following;
"http://www.myurl.com" "My homepage"
"http://www.microsofy.com" "Microsofts homepage"
What would be the best way to return this information from a function? I thought of using a 2d array but I would rather just use a collection and a structure so I can reference the collection via a key...
Recomendations welcome :)
Cheers
MarkusJ