title: Retrieve all languages used by a Github user
body: <p>In my script I have a function that retrieves JSON information from the Github API, <a href="https://api.github.com/users/octocat/repos" rel="nofollow">https://api.github.com/users/octocat/repos</a>. </p>
  
  <p>I want to have a different function to get all the languages used by (in this case) octocat and then count how many times he used the language.</p>
  
  <p>I was thinking of this:</p>
  
  <pre><code>        foreach($json['language'] as $RepoLanguage) 
          {
              echo $RepoLanguage;
          }
  </code></pre>
  
  <p>but that won't work, any suggestions/ideas?</p>