Put a variable in this PHP Command
<p>I currently have this in my php file:</p>

<pre><code>$output = shell_exec('curl --anyauth --location-trusted -u: -c cookies.txt -b cookies.txt -v -k "https://someurl.com/search?term=11111111&amp;warehouseId=123" &gt;&gt; log.txt');
</code></pre>

<p>I need to put a variable in the url so it looks like:</p>

<pre><code>https://someurl.com/search?term=$VARIABLEGOESHERE&amp;warehouseId=123
</code></pre>

<p>What would the syntax look like for that?</p>