Re: "!" in front of a variable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John Nichel wrote:
Jeff wrote:

Hey all,

I've got some code from someone else I've inherited and need to sort out
some problems with.  The programmer that wrote it originally was much
better than I and programmed a little over my head to say the least.

One function that I've come across that has 5 variables as input:

function($var1,$var2,!$var2,$var3->cc,$var3->bcc);

The question I have is on the 3rd input variable, what does the "!" in
front of $var2 do to that variable?

Jeff


Looks like it's type casting the variable. To what I don't know...I've never seen '!' used in a function like that.

causes a boolean var to be the opposite

!$var = true returnes false

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux