FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » AND and OR
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: AND and OR [message #182570 is a reply to message #182563] Fri, 16 August 2013 11:08 Go to previous messageGo to previous message
Christoph Michael Bec is currently offline  Christoph Michael Bec
Messages: 207
Registered: June 2013
Karma:
Senior Member
Am 16.08.2013 02:30, schrieb Paul Herber:
> On Thu, 15 Aug 2013 20:21:09 -0400, Twayne <nobody(at)spamcop(dot)net> wrote:
>
>> Hi,
>>
>> Doing code cleanup; something that seemed so simple is giving me lots of
>> trouble for whatever reason.
>>
>> Win 7, XAMPP, PHP 5.3, online forms:
>>
>> In my cleanup efforts I've been trying to concatenate statements for
>> things like the following:
>>
>> IF(strlen(var1) == 0) OR strlen(var2) == 0) OR strlen(var3) ==0))
>> {
>> code; notify user of errors that must be corrected.
>> }
>
> RTM, the syntax is clear.
>
> http://php.net/manual/en/control-structures.if.php

ACK.

Regarding the syntax of variables the following seems to also be
recommendable:

<http://www.php.net/manual/en/language.variables.basics.php>

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Function Problem
Next Topic: switch with case 0
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 18:30:47 GMT 2024

Total time taken to generate the page: 0.04069 seconds