You are here: Re: compare strings? « PHP Language « IT news, forums, messages
Re: compare strings?

Posted by Colin McKinnon on 06/14/05 16:01

Ron Eggler @ work wrote:

> Hi,
>
> I want to compare two Strings and I don't know how. Following HTML-Output
> is the result of the below code. why?
> The Strings are the same but the if() is false, why? Thank you!
> [HTML]
> Scofieldada@softhome.net
> <br>
> Scofieldada@softhome.net was passed<br>
> not yet!<br>

They're not the same - $buffer ends in a newline char.

try

if (trim($buffer)==$email){

although that does not allow for capitalization.

HTH

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация