Paste Search Dynamic
json
  1.    <?php
  2.         $json = '[{"jsonrpc":"2.0","result":{"appName":"WFBOT2021230567","appId":91561,"appVersions":[{"owner":"joaozinhoespigao@gmail.com","versionId":89952,"version":"1.0-DELAY","applicationKey":"sXptf0hr2WzttktB","delayData":true,"subscriptionRequired":true,"ownerManaged":false,"active":true},{"owner":"joaozinhoespigao@gmail.com","versionId":89951,"version":"1.0","applicationKey":"gdexoFfMYc1utjSZ","delayData":false,"subscriptionRequired":true,"ownerManaged":false,"active":false}]},"id":1}]';
  3.         $createKey = json_decode($json, 1);
  4.      
  5.         if(isset($createKey[0]["result"]["appVersions"])){
  6.                 echo 'Entrou! ';
  7.                 foreach ($createKey[0]["result"]["appVersions"] as $av) {
  8.                         if($av["version"] == "1.0-DELAY"){
  9.                                 echo 'TK: '.$av["applicationKey"];
  10.                         }
  11.                 }
  12.         }
  13.  
  14. ?>
Parsed in 0.014 seconds