PHP variable with minus in
<p>I'm modifying a script where I want to get some server stats, where I've put my server key as one of the variables. I fear that the variable can't have minus within them. Is that true?</p>

<p>See line 3.</p>

<pre><code>// Convert lists to JSON
$postdata=array();
$postdata['id']="534f7035-cef8-48aa-b233-8d44a0956e68";

// Run POST Request via CURL
$c2=curl_init('http://api.bf3stats.com/'.$platform.'/server/');
curl_setopt($c2,CURLOPT_HEADER,false);
curl_setopt($c2,CURLOPT_POST,true);
curl_setopt($c2,CURLOPT_USERAGENT,'BF3StatsAPI/0.1');
curl_setopt($c2,CURLOPT_HTTPHEADER,array('Expect:'));
curl_setopt($c2,CURLOPT_RETURNTRANSFER,true);
curl_setopt($c2,CURLOPT_POSTFIELDS,$postdata);
$id=curl_exec($c2);
$statuscode=curl_getinfo($c2,CURLINFO_HTTP_CODE);
curl_close($c2);

if($statuscode==200) {
    // Decode JSON Data
    $id=json_decode($id,true);
} else {
    echo "BF3 Stats API error status: ".$statuscode;

}
</code></pre>
