RE: Re: number checker

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

 



Further to José's description, here is an example:

if  (($a % $b) < $c) {
}

The above expression evaluates to a boolean.  As José says below, it means
take the remainder of $a divided by $b, then if that value is less than $c
the overall expression evaluates to true, otherwise false.

-----Original Message-----
From: José Miguel Santibáñez A. [mailto:jms@xxxxxxxxx] 
Sent: 24 February 2006 17:45
To: php-objects@xxxxxxxxxxxxxxx
Subject: Re:  Re: number checker


> 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@xxxxxxxxx


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



 



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