title: for each loop in Objective-C for accessing NSMutable dictionary
body: <p>I am finding some difficulty in accessing mutable dictionary keys and values in Objective-C.</p>
  
  <p>Suppose I have this:</p>
  
  <pre><code>NSMutableDictionary *xyz=[[NSMutableDictionary alloc] init];
  </code></pre>
  
  <p>I can set keys and values. Now, I just want to access each key and value, but I don't know the number of keys set.</p>
  
  <p>In PHP it is very easy, something as follows:</p>
  
  <pre><code>foreach ($xyz as $key =&gt; $value)
  </code></pre>
  
  <p>How is it possible in Objective-C?</p>