[PHP-DEV] Bug #2150 Updated: String comparison From: Bug Database (php-dev <email protected>)
Date: 09/04/99

ID: 2150
Updated by: riffraff
Reported By: tri_kar <email protected>
Status: Closed
Bug Type: Parser error
Assigned To:
Comments:

remember, that file() leaves the '\n''s at the end of the string!
so if garbagewords.txt contains:
riff
raff
$gar[0] is "riff\n" and $gar[1] is "raff\n", which isn't
equal to "riff" or "raff".
see manual of chop() to solve your problem.
also notice, that if $a and $b are strings and $a=$b, than
strlen($a)=strlen($b). you haven't to check it explicitelly.
if this wasn't your problem, write me or report another bug.

Full Bug description available at: http://bugs.php.net/?id=2150

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>