Fw: [PHP-WIN] How to check "false" ?
| From: | barter | Date: | Wed, 03 Jan 2001 17:55:46 +0000 |
| Subject: | Fw: [PHP-WIN] How to check "false" ? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-4766@lists.php.net to get a copy of this message | ||
I need to check if an email (mail command) action
was sucseefully performed.
What can I use ?
Hezy
==========
> if ($var) {
> do if true
> } else {
> do if false
> }
>
> Or if it's a parameter passed by URL, a better way is:
> if (isset($var)) {
> etc...
>
> Or if you want to check for false:
> if (!$var) {
> etc...
>
> Or:
> if (!isset($var)) {
> etc...
>
> Is this what you mean by simple true/false checking?
>
> Gonzalo.
>
> > I could not find any documentation about simple checking
> > for false (or true).
> > what are the best ways for that ?
> > Hezy