You are here: Re: [PHP] Comparing of string « PHP « IT news, forums, messages
Re: [PHP] Comparing of string

Posted by Jeremy Privett on 10/01/75 11:36

janbro wrote:

>Hi Jeremy,
>I tried if ( strcmp( trim($SollKombination), trim($formCheck) ) )
>
>same negativ result. For some reason both strings are not considered to be the same.
>They have the same length, are of the same type and have the same content. Why PHP
>doesn't recognize them as beeing equal.... I don't get it.
>
>thanks for your help so far
>janbro
>
>
>
This is just a shot in the dark, but have you checked the HTML source of
your test to make sure that some of the characters aren't been parsed as
HTML entities? That would technically make the strings different, but
you wouldn't be able to tell with just echoing alone.

 

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

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