title: PHP Array Output Variable different from that shown in an array
body: <p>The following array when printed shows that the value of $career[2] is 2010-.</p>
  
  <p>However no matter what I try, this if equation will not trigger. Can these array variables be different in some way?</p>
  
  <pre><code>echo $career[2];
  
      if($career[2] == "2010-"){
          $career = $career[1];
      } 
  </code></pre>
  
  <p>A print_r of the array $career reveals this..</p>
  
  <pre><code> Array ( 
  [0] =&gt; BIS career 
  [1] =&gt; CEO of the corp 
  [2] =&gt; 2010- 
  [3] =&gt; Leader of R&amp;D 
  [4] =&gt; 2005-10 
  );
  </code></pre>
  
  <p>VAR DUMP</p>
  
  <pre><code>    array(11) { 
  [0]=&gt; string(316) "BIS career " 
  [1]=&gt; string(194) " CEO of the corp " 
  [2]=&gt; string(163) " 2010- " 
  [3]=&gt; string(160) " Leader of R&amp;D " 
  [4]=&gt; string(165) " 2005-10 " }
  </code></pre>