title: if statement not returning true even though it should
body: <p>I'm trying to write a simple if statement that should be returning true but is instead returning false. The issue I'm having is that for several items on my list $dataPeriod should be returning true matching '202265' I've tried converting it to a string thinking it didn't like that I was comparing a string to an int and that didn't seem to help.</p>
  <p>I'm importing the data from this CSV file - <a href="https://www.harpercollege.edu/_resources/php/openclasslistweb.csv" rel="nofollow noreferrer">https://www.harpercollege.edu/_resources/php/openclasslistweb.csv</a></p>
  <pre><code>&lt;?php
  $next = 0;
  $file_to_read = fopen('openclasslistweb.csv', 'r');
   
  if($file_to_read !== FALSE){
      echo &quot;&lt;table class = 'open-list-table'&gt;\n&quot;;
      while(($data = fgetcsv($file_to_read, ',')) !== FALSE){
          for($i = 0; $i &lt; count($data); $i++) {
              if ($i == 0){
                  $dataCourse = $data[$i];
              }
              if ($i == 1){
                  $dataCRN = $data[$i];
              }
              if ($i == 2){
                  $dataTitle = $data[$i];
              }
              if ($i == 3){
                  $dataMethod = $data[$i];
              }
              if ($i == 4){
                  $dataInstructor = $data[$i];
              }           
              if ($i == 5){
                  $dataStartDate = $data[$i];
              }
              if ($i == 6){
                  $dataEndDate = $data[$i];
              }
              if ($i == 7){
                  $dataMonday = $data[$i];
              }
              if ($i == 8){
                  $dataTuesday = $data[$i];
              }               
              if ($i == 9){
                  $dataWednesday = $data[$i];
              }
              if ($i == 10){
                  $dataThursday = $data[$i];
              }
              if ($i == 11){
                  $dataFriday = $data[$i];
              }
              if ($i == 12){
                  $dataSaturday = $data[$i];
              }
              if ($i == 13){
                  $dataSunday = $data[$i];
              }   
              if ($i == 14){
                  $dataStartTime = $data[$i];
              }   
              if ($i == 15){
                  $dataEndTime = $data[$i];
              }   
              if ($i == 16){
                  $dataRoom = $data[$i];
              }                   
              if ($i == 17){
                  $dataBuilding = $data[$i];
              }           
              if ($i == 18){
                  $dataSchedule = $data[$i];
              }   
              if ($i == 19){
                  $dataDesc = $data[$i];
              }   
              if ($i == 20){
                  $dataPeriod = $data[$i];
              }               
          }
          if (strpos($dataPeriod, &quot;202265&quot;) !== false) {
              if ($next == 0){
                  echo &quot;&lt;tr class='open-list-header'&gt;&quot;;
              }
              else {
                  echo &quot;&lt;tr&gt;&quot;;
              }
              echo &quot;&lt;td&gt;&quot; . $dataCourse . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataCRN . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataTitle . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataMethod . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataInstructor . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataStartDate . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataEndDate . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataMonday . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataTuesday . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataWednesday . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataThursday . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataFriday . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataSaturday . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataSunday . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataStartTime . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataEndTime . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataRoom . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataBuilding . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataSchedule . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataDesc . &quot;&lt;/td&gt;&quot; . &quot;&lt;td&gt;&quot; . $dataPeriod . &quot;&lt;td&gt;&quot;;
              echo &quot;&lt;/tr&gt;\n&quot;;
              $next = $next + 1;
          }
      }
      echo &quot;&lt;/table&gt;\n&quot;; 
      fclose($file_to_read);
  }
   
  ?&gt;
  </code></pre>