note 79172 deleted from functions.returning-values by betz
| From: | betz@php.net | Date: | Wed, 14 Nov 2007 10:29:08 +0000 |
| Subject: | note 79172 deleted from functions.returning-values by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-132260@lists.php.net to get a copy of this message | ||
Note Submitter: david m a t fantasyprints.co.uk
----
to: mmamedov ::> pub [at] turkmenweb d0t c0m
the code
if (someFunction == '0') { //mind quotes!
// do something
}
should be
if (someFunction() == '0') { //mind quotes!
// do something
}
you always have to call the function, your original code only checks if the function exists or not