Re: number checker

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good answer, but regarding the documentation of PHP

copy pasted from php chm file there are no "<" logical operator
Example Name Result 
$a and $b And TRUE if both $a and $b are TRUE. 
$a or $b Or TRUE if either $a or $b is TRUE. 
$a xor $b Xor TRUE if either $a or $b is TRUE, but not both. 
! $a Not TRUE if $a is not TRUE. 
$a && $b And TRUE if both $a and $b are TRUE. 
$a || $b Or TRUE if either $a or $b is TRUE. 

comparisson operator yes
Example Name Result 
$a == $b Equal TRUE if $a is equal to $b. 
$a === $b Identical TRUE if $a is equal to $b, and they are of the
same type. (PHP 4 only)  
$a != $b Not equal TRUE if $a is not equal to $b. 
$a <> $b Not equal TRUE if $a is not equal to $b. 
$a !== $b Not identical TRUE if $a is not equal to $b, or they are not
of the same type. (PHP 4 only)  
$a < $b Less than TRUE if $a is strictly less than $b. 
$a > $b Greater than TRUE if $a is strictly greater than $b. 
$a <= $b Less than or equal to  TRUE if $a is less than or equal to $b. 
$a >= $b Greater than or equal to  TRUE if $a is greater than or equal
to $b. 

($a%$b)-> arithmetic then followed by a comparison? < 3 meaning 0,1,2

is this a bug?.... are there more like this?...can anyone give me a
book that can show me different tricks?

thank you

--- In php-objects@xxxxxxxxxxxxxxx, José Miguel Santibáñez A.
<jms@...> wrote:
>
> 
> > Can this be explained?
> > how was < used as what kind of operator?
> > thanks again for ur help
> 
> % is Modulus operator:
> $a % $b	= Remainder of $a divided by $b.
> 
> < is logical operator: less than
> 
> 
> -- 
> José Miguel Santibáñez
>     jms@...
>






PHP Data object relational mapping generator
http://www.metastorage.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux