On Sunday, June 23, 2002, at 10:46  PM, Phil Schwarzmann wrote:

> What exactly happens when you put three equal-signs together instead of
> just one or two?  I've seen this in other people's code, then search
> php.net and found nothing.

PHP does dynamic typing.  So the following returns TRUE

if ("1" == 1)

even though the first value is a string and the second value is an 
integer.  You can force PHP to check for the same type by using three 
equal-signs, so that the above would return FALSE but either of the two 
below would return TRUE:

if ("1" === "1")
if (1 === 1)

> Also, what happens when you put a @ thingy in front of a function?  Does
> it surpress the errors?

Yes.



Erik





----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to