Jump to content

vincent30000

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by vincent30000

  1. thanks tmallen.... I was trying to figure that out and realized that the > operator will be evaluated first according to the precedence rules, and then the && operator will get evaluated.... and since 2>1 is true so...the two conditions come out to be true and hence the result... thanks once again...
  2. hi guys, I am kind of new to php and also to programing. I would like to get your inputs on the following conditional statement. if (is_array($_POST) && count($_POST) > 1) now the first condition in this statement gives a true... that is understandable but the second condition gives the result of the number of array elements passed to the post via the form. In this case its 2. Then how is this if statement is always true. I mean if we take it some thing like this if (true && 2 >1) hows this statement evaluated ? I would really appreciate if some one can explain the same.... Thanks in advacne......
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.