title: PHP Json see if value exist
body: <p>I've been looking all over the <em>interwebz</em> for a simple answer but can't find any. So, the question is:</p>
  
  <p>I'm going to decode some JSON to see if a value exists; though, I don't think I'm doing it right. I want to check if the value of appid: 730 exists.</p>
  
  <p>Here's the JSON:</p>
  
  <pre><code>{
  response: {
      game_count: 106,
          games: [
              {
              appid: 10,
              playtime_forever: 67
              },
              {
              appid: 730,
              playtime_forever: 0
              },
              {
              appid: 368900,
              playtime_forever: 0
              },
              {
              appid: 370190,
              playtime_forever: 0
              },
          ]
      }
  }
  </code></pre>
  
  <p>This is what I want:</p>
  
  <pre><code>$json = file_get_contents('JSON URL HERE');
  $msgArray = json_decode($json, true);
  
  if (appid: 730 exists) {
     ...
  }
  </code></pre>
  
  <p>Thanks, hope I explained enough.</p>