RE: [PHP] IF Statements

From: Date: Thu, 16 May 2002 12:00:00 +0000
Subject: RE: [PHP] IF Statements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97896@lists.php.net to get a copy of this message
Hi Jon, Your brackets are just a bit out of sync: Here is a version that parses. You will have to make sure that my change does not affect your intended logic. if ( ($this->checkReferralCB($this->benefitRef, $this->benefitNo,$this->childDOB)) && (!$this->checkLocation($this->post, "W")) && (!empty($this->childDOB)) || ($this->checkPregnancy($this->benefitRef, $this->benefitNo)) ) Best Regards, Patrick Lynch. Optip Ltd, Internet & Mobile Development http://www.optip.com/ -----Original Message----- From: Jon Yates [mailto:Jon.Yates@mi-services.com] Sent: 15 May 2002 15:04 To: 'php-general@lists.php.net' Subject: [PHP] IF Statements People, hope you can help. The below IF statement is getting a PARSE error. Can anyone spot why? Cheers. Jon if (($this->checkReferralCB($this->benefitRef, $this->benefitNo, $this->childDOB)) && (!$this->checkLocation($this->post, "W")) && (!empty($this->childDOB))) || ($this->checkPregnancy($this->benefitRef, $this->benefitNo)) <<JYvCard.vcf>>

« previous php.general (#97896) next »