Re: 1 last error to fix before the application is done!
| From: | Colin Guthrie | Date: | Tue, 14 Oct 2008 12:55:32 +0000 |
| Subject: | Re: 1 last error to fix before the application is done! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281866@lists.php.net to get a copy of this message | ||
Jason Pruim wrote:
Yes. That's what the ! always does. It's the "not" operator in PHP (and most languages): http://uk3.php.net/manual/en/language.operators.logical.php Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/]Or, seeing as I'm a stickler for compact code: if(!empty($_SESSION['userInfo']['loggedin'])) { empty() is like isset() but tests for all sorts of "empty" cases ('', false, null and 0 are all considered, "empty").Hey Colin, Does the ! reverse the empty in this case? such as !empty = not empty?