title: How to dynamically change variable in php
body: <p>I have a token for a specific ID number which is 494</p>
  
  <pre><code>$url = api.pipedrive.com/v1/deals/494/products?start=0&amp;api_token=7ecb71622dadd2faae2732bfe73b09381150c967;
  </code></pre>
  
  <p>I want to change the number 494 to any number.</p>
  
  <p>I've made an illogical code to begin with. </p>
  
  <p>Any guide on how to do this?</p>
  
  <pre><code>$url = "https://api.pipedrive.com/v1/deals/";
  $id = 494;
  $api = "/products?start=0&amp;api_token=7ecb71622dadd2faae2732bfe73b09381150c967";
  
  $response = file_get_contents($url+$id+$api);
  echo $response;
  
  $object = json_decode($response, true);
  </code></pre>
  
  <p>I got the errorL</p>
  
  <blockquote>
    <p>Warning: file_get_contents(494): failed to open stream: No such file
    or directory</p>
  </blockquote>