You are here: Re: strings and conditionals.. « PHP Programming Language « IT news, forums, messages
Re: strings and conditionals..

Posted by Toby Inkster on 06/14/06 06:59

maya wrote:

> noticed that it works both with '!==' and '!='.... there's probably
> some subtle difference I'm still not aware of.

There is, and it's a fairly important difference with strstr.

if (1==TRUE) // true
if (1===TRUE) // false

'==' (and '!=') test whether two things are (or are not) equal-or-equivalent.

'===' (and '!==') test whether two things are (or are not) exactly-equal.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

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

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