[PHP] true, false

2003-03-09 Thread Liam Gibbs
Why is it the following code produces nothing? $responsesubmitted = FALSE; print($responsesubmitted); I have an if statement that says if($responsesubmitted), but it doesn't work.

Re: [PHP] true, false

2003-03-09 Thread Ernest E Vogelsinger
At 23:37 09.03.2003, Liam Gibbs said: [snip] Why is it the following code produces nothing? $responsesubmitted = FALSE; print($responsesubmitted); I have an if statement that says if($responsesubmitted), but it doesn't work.

RE: [PHP] True || False ?

2001-02-16 Thread Tim Ward
to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Toby Butzon [mailto:[EMAIL PROTECTED]] Sent: 16 February 2001 04:49 To: Jonathan Sharp Cc: [EMAIL PROTECTED] Subject: Re: [PHP] True || False ? Yes, you can

Re: [PHP] True || False ?

2001-02-16 Thread Robin Vickery
"MM" == Maxim Maletsky [EMAIL PROTECTED] writes: Tim Ward writes: to take this a step further, PHP doesn't seem to have types at all try ... echo 1 + true; // gives 2 echo 1 . true; // gives 11 true is a constant that seems to equate to 1, false is 0. Or is this

[PHP] True || False ?

2001-02-15 Thread Jonathan Sharp
How does php handle true and false? Do they act as true booleans? Can I do? function foo() { return false; } Thanks, -Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] True || False ?

2001-02-15 Thread Toby Butzon
Yes, you can return false. As for "true booleans", PHP doesn't really have a boolean type - it does have a sense of "true" and "not true" though. You can return false (a case-insensitive constant with the value 0) or true (whose value is probably 1 but could really be anything other than 0 or

RE: [PHP] True || False ?

2001-02-15 Thread Maxim Maletsky
an Sharp [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 1:26 PM To: [EMAIL PROTECTED] Subject: [PHP] True || False ? How does php handle true and false? Do they act as true booleans? Can I do? function foo() { return false; } Thanks, -Jonathan -- PHP General Mailing List (htt

RE: [PHP] True || False ?

2001-02-15 Thread Maxim Maletsky
'; Cheers, Maxim Maletsky -Original Message- From: Maxim Maletsky Sent: Friday, February 16, 2001 2:40 PM To: 'Jonathan Sharp'; [EMAIL PROTECTED]; 'Jeff Oien' Subject: RE: [PHP] True || False ? Yeah, sure you can, if return is found in function it then exits it. for example avoiding 'else