title: php - check if value is in csv-file
body: <p>im trying to check if two php-values are in one line in the csv fiel.</p>
  <p>csv:</p>
  <blockquote>
  <p>password, name</p>
  <p>12345, max</p>
  <p>44444, emil</p>
  </blockquote>
  <p>but when my variable is $password=&quot;123&quot; and in the csv file its &quot;12345&quot; he accepts it.</p>
  <p>But, how can i check if its 100% equals? I dont understand why &quot;123&quot; is enough?</p>
  <pre><code>$search      = $name;
  $search2     = $password;
  $lines       = file('Benutzer.csv');
  $line_number = false;
  $line_number2 = false;
  
  while (list($key, $line) = each($lines) and !$line_number) {
  
  $line_number = (strpos($line, $search) !== FALSE );
  $line_number2 = (strpos($line, $search2) !== FALSE );
  
  }
  
  if($line_number and $line_number2 ){
  header('Location: alert_anmelden_erfolgreich.php');
   }
    else{
      header('Location: alert_anmelden_NICHT_erfolgreich.php');
     } 
  </code></pre>