Re: "!" in front of a variable?
| From: | Gerry Danen | Date: | Sat, 18 Feb 2006 20:04:02 +0000 |
| Subject: | Re: "!" in front of a variable? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230698@lists.php.net to get a copy of this message | ||
! reverses a true/false input. I use it to flip a setting on or off.
Gerry
On 2/17/06, Jeff <jsmforum@optonline.net> 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?