Shoutbox

% sign in PHP - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: % sign in PHP (/showthread.php?tid=58526)

% sign in PHP by rav0 on 04-20-2006 at 07:29 AM

While I was trying to get my new shoutbox (which I downloaded and was supposed to work right away) to work, I found this line

code:
if ($c%2) {
What does that % sign mean?
RE: % sign in PHP by Eljay on 04-20-2006 at 07:33 AM

$a % $b  |  Modulus  |  Remainder of $a divided by $b.

http://uk.php.net/manual/en/language.operators.arithmetic.php


RE: % sign in PHP by rav0 on 04-20-2006 at 07:40 AM

Thanks.

Hint: Link to php.net rather that uk.php.net, that way, the follower of the link ends of at their fastest mirror, instead of your fastest mirror.