title: Check if a json array value exits on php or not
body: <p><strong>Hi everyone</strong></p>
  
  <p>I´m making a project where i need to check if a <strong>'x'</strong> value, which is being defined on a PHP variable, is founded or not inside the JSON <strong>steamid</strong> array...</p>
  
  <p>Here is a example of how JSON structure looks like:</p>
  
  <hr>
  
  <pre><code>{
  "users": [
      {
          "steamid": "[X:X:XXXXXXXXX]",
          "teamspeakid": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
          "nicknames": [
              "XXXXXXXXX"
          ],
          "addresses": [
              "XX.XX.XXX.XX"
          ]
      },
      {
          "steamid": "[Y:Y:YYYYYYYYY]",
          "teamspeakid": "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY",
          "nicknames": [
              "YYYYYYYYY"
          ],
          "addresses": [
              "YY.YY.YYY.YY"
          ]
      },
      {
          "steamid": "[Z:Z:ZZZZZZZZZ]",
          "teamspeakid": "ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ",
          "nicknames": [
              "ZZZZZZZZZ"
          ],
          "addresses": [
              "ZZ.ZZ.ZZZ.ZZ"
          ]
      }
  
  ]}
  </code></pre>
  
  <p>The PHP function structure that I have on my mind is similar to this:</p>
  
  <hr>
  
  <pre><code>if (x value is founded on json-&gt;users steamid array) {
  
     $verified = 1;
     $teamspeakid = the founded steamid-&gt;teamspeakid;
     $nicknames = the founded steamid-&gt;nicknames;
     $addresses = the founded steamid-&gt;addresses;
  
  } elseif (steamid value is not founded on json array) {
  
     $verified = 0;
  
  }
  </code></pre>
  
  <p><strong>I hope you can help me :-)</strong></p>