A newbie's try for a Q on SO
<p>I have a little newbie's hitch.</p>

<p>I have got something like this:</p>

<pre><code>// Assign Device ID
if ($line == "IMEI 358998018395510\r\n"){
 $device_id = 1;
 }elseif($line == "IMEI 352924028650492\r\n"){
 $device_id2 = 3;
}
 ........
 ........
 if (fwrite($outFile,$device_id or device_id2. ",". $date.",".$line)===FALSE){
</code></pre>

<p>I want to be able to determine which one of the variables of device_id or device_id 2 would finally be the result so i can append it to the fwrite statement on the last line above. Can someone please show how?</p>
