title: IF Not going in although statement true. (PHP)
body: <p>When I Do an IF Statement using PHP while checking values from an XML File, It thinks that the statement is not true although it is..</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" standalone="yes"?&gt;
  &lt;TacviewDebriefing Version="1.2.6"&gt;
      &lt;Mission&gt;
          &lt;Title&gt;TAPE0003&lt;/Title&gt;
          &lt;MissionTime&gt;2015-06-03T00:00:00Z&lt;/MissionTime&gt;
          &lt;Duration&gt;32890.02&lt;/Duration&gt;
          &lt;MainAircraftID&gt;59&lt;/MainAircraftID&gt;
      &lt;/Mission&gt;
      &lt;Events&gt;
          &lt;Event&gt;
              &lt;Time&gt;32224.76&lt;/Time&gt;
              &lt;PrimaryObject ID="59"&gt;
                  &lt;Type&gt;Aircraft&lt;/Type&gt;
                  &lt;Name&gt;F-16C Fighting Falcon&lt;/Name&gt;
                  &lt;Pilot&gt;Viper&lt;/Pilot&gt;
                  &lt;Coalition&gt;ROK/Shark&lt;/Coalition&gt;
              &lt;/PrimaryObject&gt;
              &lt;Action&gt;HasTakeOff&lt;/Action&gt;
              &lt;Airport ID="ICAO:LLHS"&gt;
                  &lt;Name&gt;Hatzor AFB&lt;/Name&gt;
              &lt;/Airport&gt;
          &lt;/Event&gt;
      &lt;/Events&gt;
  &lt;/TacviewDebriefing&gt;
  </code></pre>
  
  <p>and that the sample of my code:</p>
  
  <pre><code>$xml = simplexml_load_file($filedir) or die("Error: Could not open file&lt;br&gt;");
      if(isset($xml-&gt;Mission)){
          foreach($xml-&gt;Events-&gt;Event as $value){
              $num++;
              if($xml-&gt;Mission-&gt;MainAircraftID === $value-&gt;PrimaryObject['ID']{
                  echo $value-&gt;Action;
              }   
          }
      }
  </code></pre>
  
  <p>P.S: If i try to echo $value->PrimaryObject['ID']; <br>
  and echo $xml->Mission->MainAircraftID; (Inside the foreach loop) <br>
  it prints 59 and 59...</p>