title: strpos() expects parameter 1 to be string, array given Laravel
body: <p>Right Im trying to get the prices for items in my inventory using two different json files. But when it comes to the CS:GO coins they have no price so...</p>
  
  <p>Here is my code:</p>
  
  <pre><code>$json = json_decode(file_get_contents('http://steamcommunity.com/profiles/76561198050605019/inventory/json/730/2'));
  $prices  = json_decode(file_get_contents('prices.json'));
  
  $items = [];
  
  
  foreach($prices-&gt;results as $result){
      $items[$result-&gt;market_name] = $result;
  }
  
  foreach($json-&gt;rgDescriptions as $item){
      if (str_contains([' Coin ', ' coin '], $item-&gt;market_name)) continue;
      var_dump($item-&gt;market_name . ' - $' . $items[$item-&gt;market_name]-&gt;current_price);
  }
  </code></pre>
  
  <p>And here is the error im getting</p>
  
  <pre><code>public static function contains($haystack, $needles)
  {
      foreach ((array) $needles as $needle) {
          if ($needle != '' &amp;&amp; strpos($haystack, $needle) !== false) {
              return true;
          }
      }
  </code></pre>
  
  <p>I would prefer it to just ignore the coins altogether</p>