Re: % operator

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

 



On Tuesday 12 August 2003 10:27 am, Doug Thompson wrote:
> The "%" is called the Modulus operator.  It is very briefly explained in
> the PHP manual in table 11-2.
>
> In your example, $mod = $a % $b  ==> $mod = 0.8
The modulus is the remainder after division hence 5 into 24 goes 3 times with 
a remainder of 4, hence
$mod=25%4
gives $mod=4

Cheers
-- 
Phil Driscoll


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux