in PHP when using an array you can use myArray['firstElement'] to pull that specific key and its associated values from the array. How do I do this similar type of thing in objective c?
2 Answers
If you want to deal with key-value pairs, you would use an NSDictionary.
Although it is surprising to note that arrays in PHP are an ordered map.
1 Comment
uadnal
To access the key use [dict valueForKey:@"key"]
int[], an ordered collection likeNSArray, or an associative collection likeNSDictionary?