mercredi 11 mars 2020

two strings identical But when compared they don't turn out equal (php)

I have this little problem i couldn't solve on my own, i'm comparing two strings that are identical one taken from the database and the other from a text file, the values are always equal except for the last one

HERE IS THE CODE

echo "<br>".$row[0]."is".$factureAgent[$i][$nb]."<br>";
if ($année==$annéeComp[0]) {
  if ($row[0]!=$factureAgent[$i][$nb]) {
    echo "<br>".$row[0]."is".$factureAgent[$i][$nb]."<br>";
    $ok = false;
  }
  $nb++;
  $nbr++;
}

OUTPUT output

LINE I'M READING FROM TEXT FILE line from text file




Aucun commentaire:

Enregistrer un commentaire